| | |
| | | String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(permit.getPermitime()); |
| | | String s = "insert into sys_permit(id,creditCode,enterpriseName,representative,establishTime," + |
| | | "registeredCapital,organizationCode,registrationNumber,identificationNumber,enterprises," + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell)" + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,jurisdiction)" + |
| | | "values(" + "'" + permit.getId() + "'" + "," + "'" + permit.getCreditcode() + "'" + "," + "'" + permit.getEnterprisename() + "'" + "," + "'" |
| | | + permit.getRepresentative() + "'" + "," + |
| | | "'" + formatStr + "'" + "," + "'" + permit.getRegisteredcapital() + "'" + "," + "'" |
| | |
| | | permit.getRegion() + "'" + "," + "'" + permit.getRegistration() + "'" + "," + "'" + permit.getIndustry()+ "'" + "," + "'" |
| | | + permit.getType() + "'" + "," + |
| | | "'" + pertime + "'" + "," + "'" + permit.getDeptid() + "'" + "," + "'" + permit.getPtype() + "'" + "," + |
| | | "'" + permit.getRepresentativecell() + "'" + "," + "'" + permit.getContacts() + "'" + "," + "'" + permit.getContactscell() + "'"+")" ; |
| | | "'" + permit.getRepresentativecell() + "'" + "," + "'" + permit.getContacts() + "'" + "," + "'" + permit.getContactscell() + "'"+"," + "'" + permit.getJurisdiction() + "'"+")" ; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("新增成功"); |
| | | } |
| | |
| | | if (map != null) { |
| | | permit.setStorage("0"); |
| | | permitService.updateById(permit); |
| | | // String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(permit.getEstablishtime()); |
| | | // String s1 = |
| | | // "update sys_permit set creditCode = " + "'" + permit.getCreditcode()+ "'" |
| | | // + ",enterpriseName = " + "'" + permit.getEnterprisename()+"'" |
| | | // + ",representative = " + "'" + permit.getRepresentative()+"'" |
| | | // + ",establishTime = " + "'" + formatStr+"'" |
| | | // + ",registeredCapital = " + "'" + permit.getRegisteredcapital()+"'" |
| | | // + ",organizationCode = " + "'" + permit.getOrganizationcode()+"'" |
| | | // + ",registrationNumber = " + "'" +permit.getRegistrationnumber()+"'" |
| | | // + ",identificationNumber = " + "'" + permit.getIdentificationnumber()+"'" |
| | | // + ",enterprises = " + "'" + permit.getEnterprises()+"'" |
| | | // + ",address = " + "'" + permit.getAddress()+"'" |
| | | // + ",business = " + "'" + permit.getBusiness()+"'" |
| | | // + ",region = " + "'" + permit.getRegion()+"'" |
| | | // + ",registration = " + "'" +permit.getRegistration()+"'" |
| | | // + ",industry = " + "'" +permit.getIndustry()+"'" |
| | | // + ",type = " + "'" +permit.getType()+"'" |
| | | // + ",politicaloutlook = " + "'" +user.getPoliticaloutlook()+"'" |
| | | // + ",healstats = " + "'" +user.getHealstats()+"'" |
| | | // + ",height = " + "'" +user.getHeight()+"'" |
| | | // + ",address = " + "'" +user.getAddress()+"'" |
| | | // + ",registered = " + "'" +user.getRegistered()+"'" |
| | | // + ",rtime = " + "'" +rtime+"'" |
| | | // + ",securitynumber = " + "'" +user.getSecuritynumber()+"'" |
| | | // + ",hold = " + "'" +user.getHold()+"'" |
| | | // + ",jurisdiction = " + "'" +user.getJurisdiction()+"'" |
| | | // + " " +"where id = " + "'" + user.getId() + "'"; |
| | | // FtpUtil.sqlFileUpload(s1); |
| | | } else { |
| | | permit.setStorage("0"); |
| | | permit.setPermitime(new Date()); |
| | |
| | | @ApiOperation(value = "删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(permitService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String id = "1"; |
| | | String s = "delete from sys_permit where id=" + id + ";"; |
| | | System.out.println(s); |
| | | } |
| | | } |
| | |
| | | private String contacts; |
| | | private String contactscell; |
| | | private String approve; |
| | | private String jurisdiction; |
| | | |
| | | |
| | | } |
| | |
| | | <result column="contacts" property="contacts"/> |
| | | <result column="contactscell" property="contactscell"/> |
| | | <result column="approve" property="approve"/> |
| | | <result column="jurisdiction" property="jurisdiction"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 控制器 |
| | | * 控制器 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-07-12 |
| | |
| | | public R save(@Valid @RequestBody Record record) { |
| | | String cardid = record.getCardid(); |
| | | Map map = recordService.selectIn(cardid); |
| | | if (map!=null){ |
| | | if (map != null) { |
| | | String id = map.get("id").toString(); |
| | | recordService.removeByIds(Func.toLongList(id)); |
| | | } |
| | | record.setStorage("1"); |
| | | record.setType("2"); |
| | | record.setPermitime(new Date()); |
| | | recordService.save(record); |
| | | String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getEstablishtime()); |
| | | 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,creditCode,enterpriseName,representative,establishTime," + |
| | | "registeredCapital,organizationCode,registrationNumber,identificationNumber,enterprises," + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,perid,offices,officetime)" + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,perid,offices,officetime,jurisdiction)" + |
| | | "values(" + "'" + record.getId() + "'" + "," + "'" + record.getCreditcode() + "'" + "," + "'" + record.getEnterprisename() + "'" + "," + "'" |
| | | + record.getRepresentative() + "'" + "," + |
| | | "'" + formatStr + "'" + "," + "'" + record.getRegisteredcapital() + "'" + "," + "'" |
| | | + record.getOrganizationcode() + "'" + "," + "'" + record.getRegistrationnumber() + "'" + "," + |
| | | "'" + record.getIdentificationnumber() + "'" + "," + "'" + record.getEnterprises() + "'" + "," + "'" + |
| | | record.getAddress() + "'" + "," + "'" + record.getBusiness() + "'" + "," + "'" + |
| | | record.getRegion() + "'" + "," + "'" + record.getRegistration() + "'" + "," + "'" + record.getIndustry()+ "'" + "," + "'"+ record.getType() + "'" + "," +"'" + record.getPermitime() + "'" + "," + "'" + record.getDeptid() + "'" + "," + "'" + record.getPtype() + "'" + "," + |
| | | "'" + record.getRepresentativecell() + "'" + "," + "'" + record.getContacts() + "'" + "," + "'" + record.getContactscell() + "'"+"," + |
| | | "'" + record.getPerid() + "'"+"," + "'" + record.getOffices() + "'"+"," + "'" + offtime + "'"+")" ; |
| | | record.getRegion() + "'" + "," + "'" + record.getRegistration() + "'" + "," + "'" + record.getIndustry() + "'" + "," + "'" + record.getType() + "'" + "," + "'" + pertime + "'" + "," + "'" + record.getDeptid() + "'" + "," + "'" + record.getPtype() + "'" + "," + |
| | | "'" + record.getRepresentativecell() + "'" + "," + "'" + record.getContacts() + "'" + "," + "'" + record.getContactscell() + "'" + "," + |
| | | "'" + record.getPerid() + "'" + "," + "'" + record.getOffices() + "'" + "," + "'" + offtime + "'" + "'" + "," + "'" + record.getJurisdiction() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("成功"); |
| | | } |
| | |
| | | public R rocordsave(@Valid @RequestBody Record record) { |
| | | String cardid = record.getCardid(); |
| | | Map map = recordService.selectIn(cardid); |
| | | if (map!=null){ |
| | | if (map != null) { |
| | | record.setStorage("0"); |
| | | record.setPermitime(new Date()); |
| | | recordService.updateById(record); |
| | | } |
| | | else { |
| | | } else { |
| | | record.setStorage("0"); |
| | | record.setType("2"); |
| | | record.setPtype("2"); |
| | |
| | | private String contacts; |
| | | private String contactscell; |
| | | private String storage; |
| | | private String jurisdiction; |
| | | |
| | | |
| | | } |
| | |
| | | <result column="contacts" property="contacts"/> |
| | | <result column="contactscell" property="contactscell"/> |
| | | <result column="storage" property="storage"/> |
| | | <result column="jurisdiction" property="jurisdiction"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(revoke.getPermitime()); |
| | | String s = "insert into sys_revoke(id,creditCode,enterpriseName,representative,establishTime," + |
| | | "registeredCapital,organizationCode,registrationNumber,identificationNumber,enterprises," + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,reason)" + |
| | | "address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,reason,jurisdiction)" + |
| | | "values(" + "'" + revoke.getId() + "'" + "," + "'" + revoke.getCreditcode() + "'" + "," + "'" + revoke.getEnterprisename() + "'" + "," + "'" |
| | | + revoke.getRepresentative() + "'" + "," + |
| | | "'" + formatStr + "'" + "," + "'" + revoke.getRegisteredcapital() + "'" + "," + "'" |
| | |
| | | + revoke.getType() + "'" + "," + |
| | | "'" + pertime + "'" + "," + "'" + revoke.getDeptid() + "'" + "," + "'" + revoke.getPtype() + "'" + "," + |
| | | "'" + revoke.getRepresentativecell() + "'" + "," + "'" + revoke.getContacts() + "'" + "," + "'" + revoke.getContactscell() + "'"+"," + |
| | | "'" + revoke.getReason() + "'"+")" ; |
| | | "'" + revoke.getReason() + "'"+"," + "'" + revoke.getJurisdiction() + "'"+")" ; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("成功"); |
| | | } |
| | |
| | | private String contactscell; |
| | | private String storage; |
| | | private String approve; |
| | | private String jurisdiction; |
| | | |
| | | } |
| | |
| | | <result column="contactscell" property="contactscell"/> |
| | | <result column="storage" property="storage"/> |
| | | <result column="approve" property="approve"/> |
| | | <result column="jurisdiction" property="jurisdiction"/> |
| | | </resultMap> |
| | | |
| | | |