智慧保安后台管理-外网项目备份
钟日健
2022-02-25 afc2b4d2800d91c793523d14fbe2d6fbbd319fc0
src/main/java/org/springblade/modules/exam/service/impl/ScoreAuditRecordsServiceImpl.java
@@ -18,6 +18,7 @@
import org.springblade.modules.securitypaper.service.SecurityPaperService;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.service.IUserService;
import org.springblade.modules.system.service.MyAsyncService;
import org.springblade.modules.system.vo.UserVO;
import org.springblade.modules.training.entity.TrainingRegistration;
import org.springblade.modules.training.service.TrainingRegistrationService;
@@ -53,6 +54,8 @@
   @Autowired
   private SecurityPaperService securityPaperService;
   @Autowired
   private  MyAsyncService myAsyncService;
   /**
    * 自定义分页
@@ -146,7 +149,8 @@
                  " " + "where id = " + "'" + trainingRegistration.getId() + "';"+
               "update blade_user set is_train = " + "'" +  user.getIsTrain() + "'" +
                  " " + "where id = " + "'" + user.getId() + "'";
            FtpUtil.sqlFileUpload(s1);
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
         } else {
            //实操成绩不为空
            if (examScore.getTheoryGrade() >= 60 && examScore.getLearnGrade() >= 60) {
@@ -198,7 +202,8 @@
                        + "," + "'" + securityPaper.getUserId() + "'"
                        + "," + "'" + securityPaper.getApplyId() + "'"
                        + "," +"'" + securityPaper.getExamId() + "'" + ")";
                  FtpUtil.sqlFileUpload(s1);
                  //FtpUtil.sqlFileUpload(s1);
                  myAsyncService.FTP(s1);
               }
            } else {
               //不合格
@@ -238,7 +243,8 @@
                  ",user_type = " + "'" + user.getUserType() + "'" +
                  ",is_train = " + "'" + user.getIsTrain() + "'" +
                  " " + "where id = " + "'" + user.getId() + "'";
            FtpUtil.sqlFileUpload(s1);
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
         }
      }
      //审核时间
@@ -312,7 +318,8 @@
                     " " + "where id = " + "'" + trainingRegistration.getId() + "';"+
                  "update blade_user set is_train = " + "'" +  user.getIsTrain() + "'" +
                     " " + "where id = " + "'" + user.getId() + "'";
               FtpUtil.sqlFileUpload(s1);
               //FtpUtil.sqlFileUpload(s1);
               myAsyncService.FTP(s1);
            } else {
               //实操成绩不为空
               if (examScore.getTheoryGrade() >= 60 && examScore.getLearnGrade() >= 60) {
@@ -387,7 +394,8 @@
                     ",user_type = " + "'" + user.getUserType() + "'" +
                     ",is_train = " + "'" + user.getIsTrain() + "'" +
                     " " + "where id = " + "'" + user.getId() + "'";
               FtpUtil.sqlFileUpload(s1);
               //FtpUtil.sqlFileUpload(s1);
               myAsyncService.FTP(s1);
            }
         }
         //审核时间