| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.utils.DesensitizedUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.modules.social.entity.Social; |
| | | import org.springblade.modules.social.excel.SocialExcel; |
| | |
| | | social.setDeptid(deptid); |
| | | this.upSoil(social.getCardid()); |
| | | |
| | | Social social1 = Objects.requireNonNull(BeanUtil.copy(social, Social.class)); |
| | | //脱敏处理 |
| | | if (null!=social.getNation() && !social.getNation().equals("")){ |
| | | social1.setNation("***"); |
| | | } |
| | | if (null!=social.getTelephone() && !social.getTelephone().equals("")){ |
| | | social1.setTelephone(DesensitizedUtil.desensitizedPhoneNumber(social.getTelephone())); |
| | | } |
| | | if (null!=social.getCardid() && !social.getCardid().equals("")){ |
| | | social1.setCardid(DesensitizedUtil.desensitizedIdNumberBy4(social.getCardid())); |
| | | } |
| | | if (null!=social.getResidence() && !social.getResidence().equals("")){ |
| | | social1.setResidence(DesensitizedUtil.desensitizedAddress(social.getResidence())); |
| | | } |
| | | if (null!=social.getAddress() && !social.getAddress().equals("")){ |
| | | social1.setAddress(DesensitizedUtil.desensitizedAddress(social.getAddress())); |
| | | } |
| | | if (null!=social.getNature() && !social.getNature().equals("")){ |
| | | social1.setNature("***"); |
| | | } |
| | | if (null!=social.getAmount()){ |
| | | social1.setAmount(null); |
| | | } |
| | | if (null!=social.getInsuredtime()){ |
| | | social1.setInsuredtime(null); |
| | | } |
| | | |
| | | boolean save = this.save(social); |
| | | if (save) { |
| | | //内网同步 |