Преглед на файлове

修改获取积分代码

pull/22/head
wanjing преди 11 месеца
родител
ревизия
4b49b5c843
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. +8
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/service/points/receive/ReceivePonitsService.java

+ 8
- 0
tuoheng-api/src/main/java/com/tuoheng/api/service/points/receive/ReceivePonitsService.java Целия файл

.eq(WestreamKnowUser::getMark, MarkEnum.VALID.getCode())); .eq(WestreamKnowUser::getMark, MarkEnum.VALID.getCode()));
if (ObjectUtil.isNotEmpty(westreamKnowUser)) { if (ObjectUtil.isNotEmpty(westreamKnowUser)) {
return JsonResult.success("您已获得过积分了,仅能获取一次积分。"); return JsonResult.success("您已获得过积分了,仅能获取一次积分。");
} else {
westreamKnowUser = new WestreamKnowUser();
westreamKnowUser.setTenantId(request.getTenantId());
westreamKnowUser.setOpenid(request.getOpenid());
westreamKnowUser.setKnowId(request.getKnowId());
westreamKnowUser.setCreateUser(0);
westreamKnowUser.setCreateTime(DateUtils.now());
westreamKnowUserMapper.insert(westreamKnowUser);
} }


WestreamUser westreamUser = westreamUserMapper.selectOne(new LambdaQueryWrapper<WestreamUser>() WestreamUser westreamUser = westreamUserMapper.selectOne(new LambdaQueryWrapper<WestreamUser>()

Loading…
Отказ
Запис