智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/directive/controller/DirectiveController.java
@@ -80,7 +80,7 @@
               "'" + directive.getSendTime() + "'" + "," +
               "'" + directive.getContent() + "'" + ")";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      if (status) {
         //新增图片
@@ -102,7 +102,7 @@
                     "'" + directiveFile.getDirectiveId() + "'" + "," +
                     "'" + urls+ "'"+ ")";
               //FtpUtil.sqlFileUpload(s2);
               myAsyncService.FTP(s2);
               myAsyncService.dataSync(s2);
               if (!status) {
                  return R.status(false);
               }
@@ -133,7 +133,7 @@
            ",content = " + "'" + directive.getContent() + "'" +
            " " + "where id = " + "'" + directive.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      boolean status = false;
      if (update) {
@@ -157,7 +157,7 @@
                     "'" + directiveFile.getDirectiveId() + "'" + "," +
                     "'" + urls + "'"+ ")";
               //FtpUtil.sqlFileUpload(s2);
               myAsyncService.FTP(s2);
               myAsyncService.dataSync(s2);
               if (!status) {
                  R.status(false);
               }