智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
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);
@@ -270,7 +270,7 @@
    */
   @PostMapping("/getExamDetail")
   public R getExamDetail(@RequestBody ExamPaperVO examPaper) {
      System.out.println("examPaper = " + examPaper);
//      System.out.println("examPaper = " + examPaper);
      return R.data(examPaperService.getExamDetail(examPaper));
   }
@@ -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);
@@ -303,7 +303,7 @@
    *
    * @param examPaper 报名培训申请信息对象
    */
   @PostMapping("/update-audit")
   @PostMapping(value = "/update-audit",produces = "application/json;charset=UTF-8")
   public R updateAudit(@RequestBody ExamPaper examPaper) {
      //查询之前的审核状态,如果审核状态没有发生改变,则不会去修改审核信息
      ExamPaper paper = examPaperService.getById(examPaper.getId());
@@ -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);
               }
            });
         }