| | |
| | | import org.springblade.common.cache.ParamCache; |
| | | import org.springblade.common.config.FtpConfig; |
| | | import org.springblade.common.enums.DictEnum; |
| | | import org.springblade.common.utils.DesensitizedUtil; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.DigestUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.FTP.FtpUtil; |
| | | import org.springblade.modules.information.entity.Information; |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.record.entity.Record; |
| | | import org.springblade.modules.recordLegalperson.dto.RecordLegalpersonDTO; |
| | | import org.springblade.modules.recordLegalperson.entity.RecordLegalperson; |
| | | import org.springblade.modules.recordLegalperson.service.IRecordLegalpersonService; |
| | | import org.springblade.modules.recordLegalperson.vo.RecordLegalpersonVO; |
| | | import org.springblade.modules.recordk.entity.Recordk; |
| | | import org.springblade.modules.resource.service.IAttachService; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.entity.User; |
| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | import static org.springblade.common.constant.CommonConstant.DEFAULT_PARAM_PASSWORD; |
| | | import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE; |
| | |
| | | record.setStorage("1"); |
| | | record.setType("2"); |
| | | record.setPermitime(new Date()); |
| | | recordService.save(record); |
| | | |
| | | //脱敏处理 |
| | | RecordLegalperson record1 = Objects.requireNonNull(BeanUtil.copy(record, RecordLegalperson.class)); |
| | | //敏感数据处理 |
| | | if (null!=record1.getRepresentativecell() && !record1.getRepresentativecell().equals("")) { |
| | | record1.setRepresentativecell(DesensitizedUtil.desensitizedPhoneNumber(record1.getRepresentativecell())); |
| | | } |
| | | if (null!=record1.getContacts() && !record1.getContacts().equals("")) { |
| | | record1.setContacts(DesensitizedUtil.desensitizedName(record1.getContacts())); |
| | | } |
| | | if (null!=record1.getContactscell() && !record1.getContactscell().equals("")) { |
| | | record1.setContactscell(DesensitizedUtil.desensitizedPhoneNumber(record1.getContactscell())); |
| | | } |
| | | |
| | | recordService.save(record1); |
| | | //String offtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOfficetime()); |
| | | //String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getPermitime()); |
| | | String s = "insert into sys_record(id,representative," + |
| | |
| | | "changecontacts," + |
| | | "changecontactscell" + |
| | | ")" + |
| | | "values(" + "'" + record.getId() + "'" + "," + |
| | | "values(" + "'" + record1.getId() + "'" + "," + |
| | | "'" + record.getRepresentative() + "'" + "," + "'" + |
| | | record.getAddress() + "'" + "," + "'" + record.getBusiness() + "'" + "," + "'" + record.getRegistration() + "'" + "," + "'" + record.getIndustry() + "'" + "," + "'" + record.getType() + "'" + "," + "'" + record.getPtype() + "'" + "," + |
| | | "'" + record.getRepresentativecell() + "'" + "," + "'" + record.getContacts() + "'" + "," + "'" + record.getContactscell() + "'" + "," + "'" + record.getPerid() + "'" + "," + "'" + record.getOffices() + "'" + "," + "'" + record.getJurisdiction() + "'" + |