智慧保安后台管理-外网项目备份
Administrator
2021-09-24 d74b944953fb4532298f88a5ea48c44359fc9c6a
src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -23,7 +23,7 @@
import lombok.AllArgsConstructor;
import com.alibaba.fastjson.JSON;
import org.springblade.common.cache.DictCache;
import org.springblade.common.constant.FtpConstant;
import org.springblade.common.config.FtpConfig;
import org.springblade.common.enums.DictEnum;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.cache.utils.CacheUtil;
@@ -216,13 +216,13 @@
      String format = "";
      if (information.getBusinessLicense() != null && !"".equals(information.getBusinessLicense())) {
         businessLicense = information.getBusinessLicense().substring(26, information.getBusinessLicense().length());
         businessLicenses = FtpConstant.ip + businessLicense;
         businessLicenses = FtpConfig.ip + businessLicense;
      } else {
         businessLicenses = "";
      }
      if (information.getLicence() != null && !"".equals(information.getLicence())) {
         licence = information.getLicence().substring(26, information.getLicence().length());
         licences = FtpConstant.ip + licence;
         licences = FtpConfig.ip + licence;
      } else {
         licences = "";
      }
@@ -278,11 +278,18 @@
         informationService.deleteIn(strArray[i]);
         informationService.deleteSh(strArray[i]);
         informationService.deleteMe(strArray[i]);
         String s1 = "delete from sys_information where creditCode = " + "'" + strArray[i] + "'";
         FtpUtil.sqlFileUpload(s1);
         String s2 = "delete from sys_shareholder where creditCode = " + "'" + strArray[i] + "'";
         FtpUtil.sqlFileUpload(s2);
         String s3 = "delete from sys_member where creditCode = " + "'" + strArray[i] + "'";
         FtpUtil.sqlFileUpload(s3);
      }
      for (int j = 0; j < strArrays.length; j++) {
         //机构删除
         informationService.deleteDept(strArrays[j]);
         String s4 = "delete from blade_dept where id = " + "'" + strArrays[j] + "'";
         FtpUtil.sqlFileUpload(s4);
      }
      return R.success("删除成功");