智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/apply/service/impl/ApplyServiceImpl.java
@@ -146,7 +146,7 @@
                  +"'" + apply1.getIsExam() + "'" + ");" +
                  "update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
               //FtpUtil.sqlFileUpload(s);
               myAsyncService.FTP(s);
               myAsyncService.dataSync(s);
            }else {
               if (user1.getIsApply()!=1) {
                  Apply apply1 = new Apply();
@@ -178,7 +178,7 @@
                     +"'" + apply1.getIsExam() + "'" + ");" +
                     "update blade_user set is_apply = " + "'" + user1.getIsApply() + "'" +"where id = " + "'" + user1.getId() + "'";
                  //FtpUtil.sqlFileUpload(s);
                  myAsyncService.FTP(s);
                  myAsyncService.dataSync(s);
               }
            }
         }
@@ -471,7 +471,7 @@
         String s1 =
            "update sys_apply set is_exam = " + apply1.getIsExam() + " " +"where id = " + "'" + apply1.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      //模拟考
      if (apply.getExamType()==2){
@@ -485,7 +485,7 @@
         String s1 =
            "update sys_training_registration set is_exam = " + trainingRegistration.getIsExam() + " " +"where id = " + "'" + trainingRegistration.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
   }