init
This commit is contained in:
@@ -119,6 +119,7 @@ public class UserInfo implements Serializable {
|
|||||||
* 择偶条件-地区
|
* 择偶条件-地区
|
||||||
*/
|
*/
|
||||||
private String filterResidence;
|
private String filterResidence;
|
||||||
|
private String filterResidenceCode;
|
||||||
/**
|
/**
|
||||||
* 择偶条件-年收入
|
* 择偶条件-年收入
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class UpdateUserFullInfoReq {
|
|||||||
@Schema(description = "婚况")
|
@Schema(description = "婚况")
|
||||||
private Integer marriage;
|
private Integer marriage;
|
||||||
@Schema(description = "职业")
|
@Schema(description = "职业")
|
||||||
private Integer profession;
|
private String profession;
|
||||||
@Schema(description = "年收入")
|
@Schema(description = "年收入")
|
||||||
private Integer annualIncome;
|
private Integer annualIncome;
|
||||||
@Schema(description = "公司性质")
|
@Schema(description = "公司性质")
|
||||||
@@ -86,8 +86,8 @@ public class UpdateUserFullInfoReq {
|
|||||||
private String filterMarriage;
|
private String filterMarriage;
|
||||||
@Schema(description = "择偶条件-学历")
|
@Schema(description = "择偶条件-学历")
|
||||||
private Integer filterEducation;
|
private Integer filterEducation;
|
||||||
@Schema(description = "择偶条件-地区")
|
@Schema(description = "择偶条件-地区Code")
|
||||||
private String filterResidence;
|
private String filterResidenceCode;
|
||||||
@Schema(description = "择偶条件-年收入")
|
@Schema(description = "择偶条件-年收入")
|
||||||
private Integer filterAnnualIncome;
|
private Integer filterAnnualIncome;
|
||||||
@Schema(description = "择偶条件-小孩情况")
|
@Schema(description = "择偶条件-小孩情况")
|
||||||
|
|||||||
@@ -215,6 +215,8 @@ public class CurrentUserFullInfoVo {
|
|||||||
*/
|
*/
|
||||||
@Schema(description = "择偶条件-地区")
|
@Schema(description = "择偶条件-地区")
|
||||||
private String filterResidence;
|
private String filterResidence;
|
||||||
|
@Schema(description = "择偶条件-地区Code")
|
||||||
|
private String filterResidenceCode;
|
||||||
/**
|
/**
|
||||||
* 择偶条件-年收入
|
* 择偶条件-年收入
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -206,6 +206,9 @@ public class HomeUserVo {
|
|||||||
*/
|
*/
|
||||||
@Schema(description = "择偶条件-地区")
|
@Schema(description = "择偶条件-地区")
|
||||||
private String filterResidence;
|
private String filterResidence;
|
||||||
|
|
||||||
|
@Schema(description = "择偶条件-地区Code")
|
||||||
|
private String filterResidenceCode;
|
||||||
/**
|
/**
|
||||||
* 择偶条件-年收入
|
* 择偶条件-年收入
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -266,6 +266,11 @@ public class CurrentUserManager {
|
|||||||
userService.updateById(updateUser);
|
userService.updateById(updateUser);
|
||||||
|
|
||||||
UserInfo updateUserInfo = BeanConvertUtil.convertTo(req, UserInfo::new);
|
UserInfo updateUserInfo = BeanConvertUtil.convertTo(req, UserInfo::new);
|
||||||
|
if(StringUtils.isNotEmpty(req.getFilterResidenceCode())){
|
||||||
|
AreaCode areaCode = areaCodeService.getById(req.getResidenceCode());
|
||||||
|
updateUserInfo.setFilterResidenceCode(req.getFilterResidenceCode());
|
||||||
|
updateUserInfo.setFilterResidence(areaCode.getFullname());
|
||||||
|
}
|
||||||
UserInfo userInfo = userInfoService.getByUserId(userId);
|
UserInfo userInfo = userInfoService.getByUserId(userId);
|
||||||
updateUserInfo.setId(userInfo.getId());
|
updateUserInfo.setId(userInfo.getId());
|
||||||
updateUserInfo.setUpdateTime(LocalDateTime.now());
|
updateUserInfo.setUpdateTime(LocalDateTime.now());
|
||||||
|
|||||||
Reference in New Issue
Block a user