zoujiajian 9 ماه پیش
والد
کامیت
f64c246e93

+ 1 - 1
netflix-dao/src/main/java/com/cyksj/mapper/GroupsRelationMapper.java

@@ -86,5 +86,5 @@ public interface GroupsRelationMapper extends BaseMapper<GroupsRelation> {
 
 	Integer selectCountByGoodsId(@Param("userIds") List<Long> userIdList, @Param("goodsId") Long goodsId, @Param("now") DateTime now);
 
-	Integer updateUserVipSkusExpiryTime(@Param("userIds") List<Long> userIds, @Param("vipSkuIds") List<Long> vipSkuIds, @Param("expiryTime") String expiryTime);
+	Integer updateUserVipSkusExpiryTime(@Param("userIds") List<Long> userIds, @Param("vipSkuIds") List<Long> vipSkuIds, @Param("expiryTime") Date expiryTime);
 }

+ 2 - 1
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -46,7 +46,8 @@
     </update>
 
     <update id="updateUserVipSkusExpiryTime">
-        update groups_relation set expiry_time = #{expiryTime} and update_time = now()
+        update groups_relation set expiry_time = #{expiryTime},
+        update_time = now()
         where id in (select * from(
         select gr.id from groups_relation gr inner join groups_trips gt on gt.id = gr.groups_id
         where gt.sku_id in

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/order/impl/VipOrderDonServiceImpl.java

@@ -700,7 +700,7 @@ public class VipOrderDonServiceImpl extends ServiceImpl<VipOrderDonMapper, VipOr
 			});
 		}
 		//更新会员车票
-		relationMapper.updateUserVipSkusExpiryTime(userIds, vipSkuIds, DateUtil.format(expiryTime,"YYYY-MM-dd HH:mm:ss"));
+		relationMapper.updateUserVipSkusExpiryTime(userIds, vipSkuIds, expiryTime);
 	}
 
 	private BigDecimal getVipMoney(Integer num) {