zoujiajian 11 месяцев назад
Родитель
Сommit
aee7105bfd

+ 3 - 3
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -439,7 +439,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 						ticket.setReceivedGptGift(count.intValue() > 0);
 					}
 				}
-				markVipDeductTicket(userIds, ticket, vipGoodsIds, vipUserCount > 0, expiryTime);
+				markVipDeductTicket(userIds, ticket, vipGoodsIds, vipUserCount > 0);
 			});
 		}
 		userLoginRecordService.saveUserLoginDayRecord(userId);
@@ -2155,7 +2155,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 	/**
 	 * 标记是否可抵扣会员车票
 	 */
-	private void markVipDeductTicket(List<Long> userIds, RenewalView ticket, Set<Long> vipGoodsIds, Boolean isVip, Date expiryTime) {
+	private void markVipDeductTicket(List<Long> userIds, RenewalView ticket, Set<Long> vipGoodsIds, Boolean isVip) {
 		if (CollUtil.isNotEmpty(vipGoodsIds) && ticket.getIsMirror() != null && ticket.getIsMirror() && !isVip) {
 			Long goodsId = ticket.getGoodsId();
 			//只购买
@@ -2168,7 +2168,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 						.field(RenewalView::getRelationId, ticket.getRelationId()).op(Operator.NotEqual)
 						.field(RenewalView::getGoodsId, goodsId)
 						.field(RenewalView::getUserId, userIds).op(Operator.InList)
-						.field(RenewalView::getExpiryTime, expiryTime).op(Operator.GreaterThan)
+						.field(RenewalView::getExpiryTime, ticket.getExpiryTime()).op(Operator.GreaterThan)
 						.build());
 				if (number.intValue() == 0) {
 					ticket.setIsVipDeduct(true);