diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendRecordsServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendRecordsServiceImpl.java index dca9058a6..904425c31 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendRecordsServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendRecordsServiceImpl.java @@ -167,7 +167,17 @@ public class ActiveRecommendRecordsServiceImpl extends ServiceImpl oneByIdApplet = activeRecommendService.getOneByIdApplet(activeConsumption); + + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.eq(ActiveRecommendRecords::getStoreId,activeRecommendRecordsDTO.getStoreId()) + .eq(ActiveRecommendRecords::getInviteeUserId,userId) + .eq(ActiveRecommendRecords::getActiveNewlywedsId,oneByIdApplet.get(0).getId()); + List list = list(queryWrapper); + if (CollectionUtils.isEmpty(list)){ + return false; + } for (ActiveRecommendVO activeRecommendVO : oneByIdApplet) { UserBalance userBalance = userBalanceService.selectUserBalance(Integer.parseInt(activeRecommendRecordsDTO.getUserId()),iljStoreService.selectStoreByStoreId(activeRecommendRecordsDTO.getStoreId()).getChainStoreId()); //积分 diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java index 21ce19902..3e0c6c172 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeRecommend/service/impl/ActiveRecommendServiceImpl.java @@ -379,6 +379,7 @@ public class ActiveRecommendServiceImpl extends ServiceImpl lambdaQueryWrapper = new LambdaQueryWrapper<>(); lambdaQueryWrapper.eq(ActiveRecommend::getStoreId,storeId); + lambdaQueryWrapper.eq(ActiveRecommend::getIsonline,activeConsumption.getIsonline()); List list = list(lambdaQueryWrapper); for (ActiveRecommend activeRecommend : list) { ActiveRecommendVO activeRecommendVO = new ActiveRecommendVO();