tangzy
2021-08-27 a3d9cd860ed721f7ca1be0907c28b9e2c3a64a9e
src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -207,7 +207,35 @@
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "修改", notes = "传入information")
   public R update(@Valid @RequestBody Information information) throws Exception {
      return R.status(informationService.updateById(information));
      informationService.updateById(information);
      String ip = "http://192.168.0.108";
      String businessLicense = information.getBusinessLicense().substring(26, information.getBusinessLicense().length());
      String licence = information.getLicence().substring(26, information.getLicence().length());
      //内网同步
      String s1 = "update sys_information set creditcode = " + "'" + information.getCreditcode() + "'" +
         ",enterprisename = " + "'" + information.getEnterprisename() + "'" +
         ",representative = " + "'" + information.getRepresentative() + "'" +
         ",establishtime = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(information.getEstablishtime()) + "'" +
         ",registeredcapital = " + "'" + information.getRegisteredcapital() + "'" +
         ",organizationcode = " + "'" + information.getOrganizationcode() + "'" +
         ",registrationnumber = " + "'" + information.getRegistrationnumber() + "'" +
         ",enterprises = " + "'" + information.getEnterprises() + "'" +
         ",address = " + "'" + information.getAddress() + "'" +
         ",business = " + "'" + information.getBusiness() + "'" +
         ",region = " + "'" + information.getRegion() + "'" +
         ",registration = " + "'" + information.getRegistration() + "'" +
         ",industry = " + "'" + information.getIndustry() + "'" +
         ",departmentid = " + "'" + information.getDepartmentid() + "'" +
         ",stats = " + "'" + information.getStats() + "'" +
         ",jurisdiction = " + "'" + information.getJurisdiction() + "'" +
         ",representativecell = " + "'" + information.getRepresentativecell() + "'" +
         ",contacts = " + "'" + information.getContacts() + "'" +
         ",contactscell = " + "'" + information.getContactscell() + "'" +
         ",business_License = " + "'" + ip + businessLicense + "'" +
         ",licence = " + "'" + ip + licence + "'" +
         " " + "where id = " + "'" + information.getId() + "'";
      FtpUtil.sqlFileUpload(s1);
      return R.success("修改成功");
   }
   /**