|
|
|
|
|
|
|
|
if (null == westreamUser.getTenantId() || StringUtils.isEmpty(westreamUser.getOpenid())) { |
|
|
if (null == westreamUser.getTenantId() || StringUtils.isEmpty(westreamUser.getOpenid())) { |
|
|
return JsonResult.error("参数为空!"); |
|
|
return JsonResult.error("参数为空!"); |
|
|
} |
|
|
} |
|
|
|
|
|
if (StringUtils.isEmpty(westreamUser.getUnionid())) { |
|
|
|
|
|
return JsonResult.error("unionid为空!"); |
|
|
|
|
|
} |
|
|
WestreamUser westreamUserQuery = westreamUserMapper.selectOne(new LambdaQueryWrapper<WestreamUser>() |
|
|
WestreamUser westreamUserQuery = westreamUserMapper.selectOne(new LambdaQueryWrapper<WestreamUser>() |
|
|
.eq(WestreamUser::getMark, 1) |
|
|
.eq(WestreamUser::getMark, 1) |
|
|
.eq(WestreamUser::getTenantId, westreamUser.getTenantId()) |
|
|
.eq(WestreamUser::getTenantId, westreamUser.getTenantId()) |
|
|
|
|
|
|
|
|
westreamUserMapper.updateById(westreamUser); |
|
|
westreamUserMapper.updateById(westreamUser); |
|
|
} else { |
|
|
} else { |
|
|
westreamUserQuery.setLoginNum(westreamUserQuery.getLoginNum() + 1); |
|
|
westreamUserQuery.setLoginNum(westreamUserQuery.getLoginNum() + 1); |
|
|
|
|
|
westreamUserQuery.setUnionid(westreamUser.getUnionid()); |
|
|
westreamUserMapper.updateById(westreamUserQuery); |
|
|
westreamUserMapper.updateById(westreamUserQuery); |
|
|
} |
|
|
} |
|
|
|
|
|
|