| | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.utils.uuid.UUID; |
| | | import com.ruoyi.domain.*; |
| | | |
| | | import com.ruoyi.domain.dto.Genealogy; |
| | |
| | | user.setSex(zInfoUser.getSex()+""); |
| | | user.setUserName(zInfoUser.getOldName()); |
| | | user.setPhonenumber(zInfoUser.getPhoneNumber()); |
| | | String oriUaid = zInfoUser.getUaid(); |
| | | |
| | | String originalString = zInfoUser.getOldName()+"-"+zInfoUser.getPhoneNumber(); |
| | | String uniqueId = UUID.nameUUIDFromBytes(originalString.getBytes()).toString(); |
| | | zInfoUser.setUaid(uniqueId); |
| | | |
| | | // |
| | | // us.setUserId(user.getSysId()); |
| | | // us.setUserName(user.getUserName()); |
| | |
| | | // us.setRemark(user.getRemark()); |
| | | userService.updateUser(user); |
| | | //LambdaUpdateWrapper<ZInfoUser> uw = new LambdaUpdateWrapper<>(); |
| | | |
| | | |
| | | //修改uaid相同的用户记录 |
| | | if(oriUaid!=null) { |
| | | List<ZInfoUser> list = zInfoUserService.findByUaidToFaid(oriUaid); |
| | | for(ZInfoUser zInfoUser1: list) |
| | | zInfoUser1.setUaid(oriUaid); |
| | | return toAjax(zInfoUserService.saveBatch(list)); |
| | | } |
| | | else |
| | | // uw.eq(ZInfoUser::getSysId,userId).set(ZInfoUser::getSelfIntroduction,zInfoUser.getSelfIntroduction()); |
| | | return toAjax(zInfoUserService.saveOrUpdate(zInfoUser)); |
| | | // saveOrUpdate(zInfoUser)); |