This commit is contained in:
77
2024-04-23 01:59:39 +08:00
parent bffd6fcee0
commit 7434564e3e
3 changed files with 3 additions and 0 deletions

View File

@@ -21,5 +21,6 @@ public class AddUserReq {
private Integer marriage;
private String profession;
private Integer annualIncome;
private Integer forPersonals;
private String pictures;
}

View File

@@ -19,5 +19,6 @@ public class UpdateUserReq {
private Integer education;
private Integer marriage;
private String profession;
private Integer forPersonals;
private Integer annualIncome;
}

View File

@@ -372,6 +372,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements Use
updateUser.setGender(updateUserReq.getGender());
updateUser.setHeight(updateUserReq.getHeight());
updateUser.setWeight(updateUserReq.getWeight());
updateUser.setForPersonals(updateUserReq.getForPersonals());
if(updateUserReq.getBirthday() != null){
updateUser.setAge(AgeUtil.getAge(updateUserReq.getBirthday()));
}