| | |
| | | ZInfoUser zInfoUser = zInfoUserService.getInfoById(userId); |
| | | if(zInfoUser!=null) |
| | | { |
| | | zInfoUser.setUpdateTime(zInfoUser.getUpdateTime()==null?zInfoUser.getCreateTime():zInfoUser.getUpdateTime()); |
| | | return AjaxResult.success(zInfoUser); |
| | | } |
| | | else |
| | |
| | | |
| | | //查询sys_user表 |
| | | // SysUser sysUser = sysUserService.selectUserById(userId); |
| | | ZInfoUser infoById = zInfoUserService.getInfoById(userId); |
| | | if (infoById != null) infoById.setUpdateTime(infoById.getUpdateTime()==null?infoById.getCreateTime():infoById.getUpdateTime()); |
| | | |
| | | return AjaxResult.success(infoById); |
| | | return AjaxResult.success(zInfoUserService.getInfoById(userId)); |
| | | } |
| | | // |
| | | |
| | |
| | | // if (!Pattern.matches("^[\\d]+(?:,[\\d]+)*$",zInfoUser.getFamilyId())) { |
| | | // throw new RuntimeException("请输入只有数字和英文逗号的字符串,且数字和逗号必须交替出现"); |
| | | // } |
| | | Date currentDate = new Date(); |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | zInfoUser.setSysId(userId); |
| | |
| | | user.setUserName(zInfoUser.getOldName()); |
| | | user.setPhonenumber(zInfoUser.getPhoneNumber()); |
| | | user.setEmail(zInfoUser.getEmail()); |
| | | user.setUpdateTime(zInfoUser.getUpdateTime()!=null?zInfoUser.getUpdateTime():currentDate); |
| | | |
| | | String oriUaid = zInfoUser.getUaid(); |
| | | |
| | | String originalString = zInfoUser.getOldName()+"-"+zInfoUser.getPhoneNumber(); |
| | | String uniqueId = UUID.nameUUIDFromBytes(originalString.getBytes()).toString(); |
| | | zInfoUser.setUaid(uniqueId); |
| | | |
| | | |
| | | // |
| | | // us.setUserId(user.getSysId()); |