智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/dispatcher/controller/DispatcherUnitController.java
@@ -155,7 +155,7 @@
                  "'" + dispatcherUnit.getCell() + "'" + "," +
                  "'" + dispatcherUnit.getNum() + "'" + ")";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
            myAsyncService.dataSync(s1);
         }
      } else {
         //修改
@@ -184,12 +184,12 @@
                  ",num = " + "'" + dispatcherUnit.getNum() + "'" +
                  " " + "where id = " + "'" + dispatcherUnit.getId() + "'";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
            myAsyncService.dataSync(s1);
            //内网同步派遣记录修改合同时间
            String s2 =
               "update sys_dispatcher set end_time = " + "'" + endTime + "'" + " " + "where dispatcher_unit_id = " + "'" + ids + "'";
            //FtpUtil.sqlFileUpload(s2);
            myAsyncService.FTP(s2);
            myAsyncService.dataSync(s2);
         }
      }
      return R.status(status);
@@ -208,7 +208,7 @@
         //内网同步
         String s1 = "delete from sys_dispatcher_unit where id = " + "'" + id + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      });
      return R.status(dispatcherUnitService.removeByIds(Func.toLongList(ids)));
   }