| | |
| | | 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.mp.support.Condition; |
| | | 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.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 java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | 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()); |
| | | boolean save = recordService.save(record); |
| | | |
| | | //脱敏处理 |
| | | Record record1 = Objects.requireNonNull(BeanUtil.copy(record, Record.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())); |
| | | } |
| | | boolean save = recordService.save(record1); |
| | | if (save) { |
| | | String s = "insert into sys_record(id,representative," + |
| | | "address,business,registration,industry,type,ptype,representativecell,contacts,contactscell,perid,offices,jurisdiction,cardid,storage,overtime)" + |
| | | "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() + "'" + |
| | |
| | | record.setStorage("0"); |
| | | record.setType("2"); |
| | | record.setPermitime(new Date()); |
| | | |
| | | recordService.save(record); |
| | | } |
| | | return R.success("暂存成功"); |
| | |
| | | String id = kv.get("id").toString(); |
| | | information.setDepartmentid(id); |
| | | } |
| | | informationService.save(information); |
| | | |
| | | Information information1 = Objects.requireNonNull(BeanUtil.copy(information, Information.class)); |
| | | //敏感数据处理 |
| | | if (null!=information1.getRepresentativecell() && !information1.getRepresentativecell().equals("")) { |
| | | information1.setRepresentativecell(DesensitizedUtil.desensitizedPhoneNumber(information1.getRepresentativecell())); |
| | | } |
| | | if (null!=information1.getContacts() && !information1.getContacts().equals("")) { |
| | | information1.setContacts(DesensitizedUtil.desensitizedName(information1.getContacts())); |
| | | } |
| | | if (null!=information1.getContactscell() && !information1.getContactscell().equals("")) { |
| | | information1.setContactscell(DesensitizedUtil.desensitizedPhoneNumber(information1.getContactscell())); |
| | | } |
| | | informationService.save(information1); |
| | | Integer isDeleted = 0; |
| | | //注册用户 |
| | | User user = new User(); |
| | |
| | | ",registeredCapital,organizationCode,registrationNumber, enterprises, address," + |
| | | " business,region,registration,industry,departmentid,stats,jurisdiction,representativecell," + |
| | | "contacts,contactscell,create_user_id) " + |
| | | "values(" + "'" + information.getId() + "'" + |
| | | "values(" + "'" + information1.getId() + "'" + |
| | | "," + "'" + information.getCreditcode() + "'" + |
| | | "," + "'" + information.getEnterprisename() + "'" + |
| | | "," + "'" + information.getRepresentative() + "'" + |