Commit d4f56fcf authored by 技术部-任文超's avatar 技术部-任文超

用户补充个人详细信息(旧版实名)功能增加查询修改支持(之前只能是新增,有问题)

parent 84dfaf81
......@@ -53,11 +53,14 @@ public class UserDetailController implements IBaseController {
return JsonResult.buildErrorStateResult("系统错误", null);
}
Timestamp now = new Timestamp(System.currentTimeMillis());
UserDetail userDetail = new UserDetail();
UserDetail userDetail = userDetailService.findByUserId(user.getId());
if (null == userDetail) {
userDetail = new UserDetail();
userDetail.setCreatedAt(now);
}
userDetail.setIdNo(idNo);
userDetail.setPhoneNo(user.getPhoneNo());
userDetail.setUserId(user.getId());
userDetail.setCreatedAt(now);
userDetail.setUpdatedAt(now);
userDetail.setName(name);
userDetail.setGender(info.getGender());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment