|
|
|
|
|
|
|
|
.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>() |