|
|
@@ -332,12 +332,12 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
KxsUser user = RetOps.of(kxsUserR)
|
|
|
.getData()
|
|
|
.orElseThrow(() -> new GlobalCustomerException(ErrorTypeEnum.USER_NOT_FOUND.getDescription()));
|
|
|
- //参与训练营的创客ID
|
|
|
+// //参与训练营的创客ID
|
|
|
Integer campUserId = param.getUserId();
|
|
|
- if (kxsCamp == null) {
|
|
|
- kxsCamp = baseMapper.selectUserCamp(user.getPid());
|
|
|
- campUserId = user.getPid();
|
|
|
- }
|
|
|
+// if (kxsCamp == null) {
|
|
|
+// kxsCamp = baseMapper.selectUserCamp(user.getPid());
|
|
|
+// campUserId = user.getPid();
|
|
|
+// }
|
|
|
if (kxsCamp == null) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -380,7 +380,7 @@ public class KxsCampServiceImpl extends ServiceImpl<KxsCampMapper, KxsCamp> impl
|
|
|
case 3, 4 -> kxsCampBonusLog.setSourceType(CampSourceTypeEnum.S_LKB.getType());
|
|
|
}
|
|
|
campBonusLogService.save(kxsCampBonusLog);
|
|
|
- log.info("用户/上级{}参加训练营{},开机数+1", param.getUserId(), kxsCamp.getId());
|
|
|
+ log.info("用户{}参加训练营{},开机数+{}", param.getUserId(), kxsCamp.getId(), sourceNum);
|
|
|
}
|
|
|
|
|
|
@Override
|