| | |
| | | import com.panzhihua.common.model.vos.user.InputUserInfoVO; |
| | | import com.panzhihua.common.utlis.IdCard; |
| | | import com.panzhihua.common.utlis.SensitiveUtil; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_user.dao.ComMngUserTagDAO; |
| | | import com.panzhihua.service_user.dao.SysUserInputDAO; |
| | | import com.panzhihua.service_user.model.dos.ComMngFamilyInfoDO; |
| | |
| | | iPage.getRecords().forEach(record->{ |
| | | record.setPhone(SensitiveUtil.desensitizedPhoneNumber(record.getPhone())); |
| | | record.setIdCard(SensitiveUtil.desensitizedIdNumber(record.getIdCard())); |
| | | if(!StringUtils.isEmpty(record.getTags()) && record.getTags().endsWith(",")){ |
| | | record.setTags(record.getTags().substring(0,record.getTags().length()-1)); |
| | | } |
| | | }); |
| | | return R.ok(iPage); |
| | | } |
| | |
| | | userInputDO.setTags(inputUserTagsDTO.getTags()); |
| | | List<SysUserInputDO> all = sysUserInputDAO.selectList(new QueryWrapper<SysUserInputDO>().lambda().eq(SysUserInputDO::getIdCard,userInputDO.getIdCard())); |
| | | all.forEach(d->{ |
| | | d.setTags(inputUserTagsDTO.getTags()); |
| | | if(!StringUtils.isEmpty(d.getTags())){ |
| | | d.setTags(d.getTags()+","+inputUserTagsDTO.getTags()); |
| | | }else{ |
| | | d.setTags(inputUserTagsDTO.getTags()); |
| | | } |
| | | sysUserInputDAO.updateById(userInputDO); |
| | | |
| | | }); |
| | | return R.ok(); |
| | | } |