| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.utils.DesensitizedUtil; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.FTP.FtpUtil; |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.permit.entity.Permit; |
| | | import org.springblade.modules.permit.vo.PermitVO; |
| | | import org.springblade.modules.record.dto.RecordDTO; |
| | | import org.springblade.modules.record.entity.Record; |
| | | import org.springblade.modules.recordk.dto.RecordkDTO; |
| | | import org.springblade.modules.recordk.entity.Recordk; |
| | | import org.springblade.modules.recordk.service.IRecordkService; |
| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | recordk.setStorage("1"); |
| | | recordk.setType("2"); |
| | | recordk.setPermitime(new Date()); |
| | | recordkService.save(recordk); |
| | | |
| | | //脱敏处理 |
| | | Recordk recordk1 = Objects.requireNonNull(BeanUtil.copy(recordk, Recordk.class)); |
| | | //敏感数据处理 |
| | | if (null!=recordk1.getRepresentativecell() && !recordk1.getRepresentativecell().equals("")) { |
| | | recordk1.setRepresentativecell(DesensitizedUtil.desensitizedPhoneNumber(recordk1.getRepresentativecell())); |
| | | } |
| | | if (null!=recordk1.getContacts() && !recordk1.getContacts().equals("")) { |
| | | recordk1.setContacts(DesensitizedUtil.desensitizedName(recordk1.getContacts())); |
| | | } |
| | | if (null!=recordk1.getContactscell() && !recordk1.getContactscell().equals("")) { |
| | | recordk1.setContactscell(DesensitizedUtil.desensitizedPhoneNumber(recordk1.getContactscell())); |
| | | } |
| | | recordkService.save(recordk1); |
| | | String s = "insert into sys_recordk(id,creditCode,enterpriseName,representative," + |
| | | "address,business,region,registration,industry,type,deptid,ptype,representativecell,contacts,contactscell,cardid,overtime," + |
| | | "jurisdiction," + |
| | |
| | | "kservicetime," + |
| | | "kaddress" + |
| | | ")" + |
| | | "values(" + "'" + recordk.getId() + "'" + "," + "'" + |
| | | "values(" + "'" + recordk1.getId() + "'" + "," + "'" + |
| | | recordk.getCreditcode() + "'" + "," + "'" + recordk.getEnterprisename() + "'" + "," + "'" |
| | | + recordk.getRepresentative() + "'" + "," + "'" + |
| | | recordk.getAddress() + "'" + "," + "'" + recordk.getBusiness() + "'" + "," + "'" + |