This commit is contained in:
齐天大圣 2024-03-12 17:29:18 +08:00
parent f1e58fc93f
commit fb07dc3458
2 changed files with 11 additions and 0 deletions

View File

@ -167,7 +167,17 @@ public class ActiveRecommendRecordsServiceImpl extends ServiceImpl<ActiveRecomme
LJUser ljUser = ljUserService.queryUserByUserId(userId); LJUser ljUser = ljUserService.queryUserByUserId(userId);
ActiveConsumption activeConsumption = new ActiveConsumption(); ActiveConsumption activeConsumption = new ActiveConsumption();
activeConsumption.setStoreId(activeRecommendRecordsDTO.getStoreId()); activeConsumption.setStoreId(activeRecommendRecordsDTO.getStoreId());
activeConsumption.setIsonline("0");
List<ActiveRecommendVO> oneByIdApplet = activeRecommendService.getOneByIdApplet(activeConsumption); List<ActiveRecommendVO> oneByIdApplet = activeRecommendService.getOneByIdApplet(activeConsumption);
LambdaQueryWrapper<ActiveRecommendRecords> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(ActiveRecommendRecords::getStoreId,activeRecommendRecordsDTO.getStoreId())
.eq(ActiveRecommendRecords::getInviteeUserId,userId)
.eq(ActiveRecommendRecords::getActiveNewlywedsId,oneByIdApplet.get(0).getId());
List<ActiveRecommendRecords> list = list(queryWrapper);
if (CollectionUtils.isEmpty(list)){
return false;
}
for (ActiveRecommendVO activeRecommendVO : oneByIdApplet) { for (ActiveRecommendVO activeRecommendVO : oneByIdApplet) {
UserBalance userBalance = userBalanceService.selectUserBalance(Integer.parseInt(activeRecommendRecordsDTO.getUserId()),iljStoreService.selectStoreByStoreId(activeRecommendRecordsDTO.getStoreId()).getChainStoreId()); UserBalance userBalance = userBalanceService.selectUserBalance(Integer.parseInt(activeRecommendRecordsDTO.getUserId()),iljStoreService.selectStoreByStoreId(activeRecommendRecordsDTO.getStoreId()).getChainStoreId());
//积分 //积分

View File

@ -379,6 +379,7 @@ public class ActiveRecommendServiceImpl extends ServiceImpl<ActiveRecommendMappe
//获取新人有礼活动信息 //获取新人有礼活动信息
LambdaQueryWrapper<ActiveRecommend> lambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ActiveRecommend> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(ActiveRecommend::getStoreId,storeId); lambdaQueryWrapper.eq(ActiveRecommend::getStoreId,storeId);
lambdaQueryWrapper.eq(ActiveRecommend::getIsonline,activeConsumption.getIsonline());
List<ActiveRecommend> list = list(lambdaQueryWrapper); List<ActiveRecommend> list = list(lambdaQueryWrapper);
for (ActiveRecommend activeRecommend : list) { for (ActiveRecommend activeRecommend : list) {
ActiveRecommendVO activeRecommendVO = new ActiveRecommendVO(); ActiveRecommendVO activeRecommendVO = new ActiveRecommendVO();