bug
This commit is contained in:
parent
f1e58fc93f
commit
fb07dc3458
@ -167,7 +167,17 @@ public class ActiveRecommendRecordsServiceImpl extends ServiceImpl<ActiveRecomme
|
||||
LJUser ljUser = ljUserService.queryUserByUserId(userId);
|
||||
ActiveConsumption activeConsumption = new ActiveConsumption();
|
||||
activeConsumption.setStoreId(activeRecommendRecordsDTO.getStoreId());
|
||||
activeConsumption.setIsonline("0");
|
||||
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) {
|
||||
UserBalance userBalance = userBalanceService.selectUserBalance(Integer.parseInt(activeRecommendRecordsDTO.getUserId()),iljStoreService.selectStoreByStoreId(activeRecommendRecordsDTO.getStoreId()).getChainStoreId());
|
||||
//积分
|
||||
|
@ -379,6 +379,7 @@ public class ActiveRecommendServiceImpl extends ServiceImpl<ActiveRecommendMappe
|
||||
//获取新人有礼活动信息
|
||||
LambdaQueryWrapper<ActiveRecommend> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(ActiveRecommend::getStoreId,storeId);
|
||||
lambdaQueryWrapper.eq(ActiveRecommend::getIsonline,activeConsumption.getIsonline());
|
||||
List<ActiveRecommend> list = list(lambdaQueryWrapper);
|
||||
for (ActiveRecommend activeRecommend : list) {
|
||||
ActiveRecommendVO activeRecommendVO = new ActiveRecommendVO();
|
||||
|
Loading…
Reference in New Issue
Block a user