智慧保安后台管理-外网
tangzy
2022-02-24 d4b00c05321d9373a33bfb26618735e2a5868a81
src/main/java/org/springblade/modules/system/controller/DeptController.java
@@ -41,6 +41,7 @@
import org.springblade.modules.system.node.TreeNodes;
import org.springblade.modules.system.service.IDeptService;
import org.springblade.modules.system.service.IUserService;
import org.springblade.modules.system.service.MyAsyncService;
import org.springblade.modules.system.vo.DeptVO;
import org.springblade.modules.system.wrapper.DeptWrapper;
import org.springframework.web.bind.annotation.*;
@@ -70,6 +71,7 @@
   private final IUserService userService;
   private final IInformationService informationService;
   private final MyAsyncService myAsyncService;
   /**
    * 详情
@@ -249,7 +251,8 @@
               "," + "'" + dept.getSort() + "'" +
               "," + "'" + dept.getRemark() + "'" +
               "," + "'" + isDeleted + "'" + ")";
            FtpUtil.sqlFileUpload(ss);
            //FtpUtil.sqlFileUpload(ss);
            myAsyncService.FTP(ss);
         }else {
            //修改
            //内网同步
@@ -263,7 +266,8 @@
                  + ",remark = " + "'" + dept.getRemark() + "'"
                  + ",is_deleted = " + "'" + dept.getIsDeleted() + "'"
                  + " " + "where id = " + "'" + dept.getId() + "'";
            FtpUtil.sqlFileUpload(s1);
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
         }
//         String id = kv.get("id").toString();
//         information.setDepartmentid(id);
@@ -294,7 +298,8 @@
      list.forEach(id -> {
         //内网同步
         String s1 = "update blade_dept set is_deleted = 1 where id = " + "'" + id + "'";
         FtpUtil.sqlFileUpload(s1);
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
      });
      return R.status(deptService.removeDept(ids));
   }