|
|
@@ -278,8 +278,6 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
KxsCampUser kxsCampUser = kxsCampUserService.getOne(Wrappers.<KxsCampUser>lambdaQuery()
|
|
|
.eq(KxsCampUser::getCampId, kxsCamp.getId())
|
|
|
.eq(KxsCampUser::getUserId, campUserId));
|
|
|
- kxsCampUser.setTeamOrderPool(NumberUtil.add(kxsCampUser.getTeamOrderPool(), amount));
|
|
|
- kxsCampUser.setTeamOrderNum(kxsCampUser.getTeamOrderNum() + number.intValue());
|
|
|
|
|
|
KxsCampBonusLog kxsCampBonusLog = new KxsCampBonusLog();
|
|
|
kxsCampBonusLog.setCampId(kxsCamp.getId());
|
|
|
@@ -314,6 +312,9 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
kxsCampUser.setTeamOrderNum(kxsCampUser.getTeamOrderNum() + addCount);
|
|
|
kxsCampBonusLog.setSourceType(CampSourceTypeEnum.S_MZQ.getType());
|
|
|
kxsCampBonusLog.setRemark("盟主兑换-" + param.getOrderNo());
|
|
|
+ }else{
|
|
|
+ kxsCampUser.setTeamOrderNum(kxsCampUser.getTeamOrderNum() + number.intValue());
|
|
|
+ kxsCampUser.setTeamOrderPool(NumberUtil.add(kxsCampUser.getTeamOrderPool(), amount));
|
|
|
}
|
|
|
campBonusLogService.save(kxsCampBonusLog);
|
|
|
kxsCampUserService.updateById(kxsCampUser);
|