智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/exam/controller/ExamPaperController.java
@@ -143,7 +143,7 @@
            "'" + "," + "'" + examPaper.getExamType() +
            "'" + "," + "'" + format + "'" + ")";
         //FtpUtil.sqlFileUpload(s);
         myAsyncService.FTP(s);
         myAsyncService.dataSync(s);
      }
      return R.status(save);
   }
@@ -162,7 +162,7 @@
               ",start_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getStartTime()) + "'" +
               " " + "where id = " + "'" + exam.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      return R.status(b);
   }
@@ -190,7 +190,7 @@
         //内网同步
         String s1 = "delete from ksxt_exam where id = " + "'" + id + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      });
      boolean temp = examPaperService.removeByIds(Func.toLongList(ids));
      return R.status(temp);
@@ -291,7 +291,7 @@
               + ",confirm_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(exam.getConfirmTime()) + "'"
               + " " + "where id = " + "'" + exam.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      //返回数据
      return R.data(status);
@@ -321,7 +321,7 @@
                  + ",audit_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(examPaper.getAuditTime()) + "'"
                  + " " + "where id = " + "'" + examPaper.getId() + "'";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
            myAsyncService.dataSync(s1);
         }
         //查询当前考试已报名的人员培训报名数据集合
         List<TrainingRegistration> trainingRegistrations = examPaperService.getTrainList(examPaper.getId());
@@ -363,7 +363,7 @@
                        + ",audit_status = " + "'" + trainingRegistration.getAuditStatus() + "'"
                        + " " + "where id = " + "'" + trainingRegistration.getId() + "'";
                  //FtpUtil.sqlFileUpload(s2);
                  myAsyncService.FTP(s2);
                  myAsyncService.dataSync(s2);
               }
            });
         }