This commit is contained in:
77
2024-04-23 01:36:07 +08:00
parent 67b73e82bb
commit f151ff02f3
4 changed files with 28 additions and 22 deletions

View File

@@ -171,27 +171,8 @@ public class CurrentUserManager {
updateUserInfo.setUpdateTime(LocalDateTime.now());
updateUserInfo.setId(userInfo.getId());
userInfoService.updateById(updateUserInfo);
// 检查finishStatus
boolean finishBaseStatus = true;
User user = userService.getById(userId);
if(user.getForPersonals() == null || user.getGender() == 0
|| user.getBirthday() == null || user.getHeight() == null
|| user.getWeight() == null || user.getResidenceCode() == null
|| user.getAddressCode() == null || user.getEducation() == null
|| user.getMarriage() == null || user.getProfession() == null
|| user.getAnnualIncome() == null || user.getUsercode() == null){
finishBaseStatus = false;
}
userInfo = userInfoService.getById(userInfo.getId());
if(userInfo.getCarStatus() == null || userInfo.getHousingStatus() == null){
finishBaseStatus = false;
}
if(finishBaseStatus){
userService.update(Wrappers.lambdaUpdate(User.class)
.eq(User::getId,user.getId())
.set(User::getFinishBaseStatus, 1));
}
userService.checkFinishStatus(userId);
}
@Autowired