智慧保安后台管理-外网
tangzy
2022-02-24 d4b00c05321d9373a33bfb26618735e2a5868a81
src/main/java/org/springblade/modules/exam/service/impl/ExamSubjectChoicesServiceImpl.java
@@ -15,6 +15,7 @@
import org.springblade.modules.exam.vo.ExamSubjectChoicesVO;
import org.springblade.modules.simulateexam.entity.SimulateExamAnswerRecord;
import org.springblade.modules.simulateexam.service.SimulateExamAnswerRecordService;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -26,6 +27,7 @@
/**
 * 选择题服务实现类
 *
 * @author zhongrj
 */
@Service
@@ -39,6 +41,8 @@
   @Autowired
   private SimulateExamAnswerRecordService simulateExamAnswerRecordService;
   @Autowired
   private MyAsyncService myAsyncService;
   @Override
@@ -53,6 +57,7 @@
   /**
    * 详情
    *
    * @param examSubjectChoices 选择题信息对象
    */
   @Override
@@ -67,6 +72,7 @@
   /**
    * 新增题目及选项信息
    *
    * @param examSubjectChoices 题目信息对象
    * @return
    */
@@ -154,6 +160,7 @@
   /**
    * 题库导入
    *
    * @param data 导入数据
    * @param isCovered
    */
@@ -299,6 +306,7 @@
   /**
    * 判断当前题目的答题结果
    *
    * @param preSubJectId 题目Id
    * @param preResult 提交的结果
    * @param scoreId 成绩id
@@ -355,6 +363,7 @@
   /**
    * 新增答题记录
    *
    * @param choices 题目
    * @param preSubJectId 上一题题目id
    * @param preResult 上一题答题结果
@@ -394,11 +403,13 @@
         "," + "'" + examAnswerRecord.getAnswerScore() + "'" +
         "," + "'" + examAnswerRecord.getAnswerResult() + "'" +
         "," + "'" + examAnswerRecord.getScoreId() + "'" + ")";
      FtpUtil.sqlFileUpload(s);
      //FtpUtil.sqlFileUpload(s);
      myAsyncService.FTP(s);
   }
   /**
    * 随机查询题库120道
    *
    * @return
    */
   @Override
@@ -408,6 +419,7 @@
   /**
    * 判断当前题目的答题结果
    *
    * @param preSubJectId 题目 id
    * @param preResult 提交的结果
    * @param simulateExamId 模拟考试记录 id
@@ -464,6 +476,7 @@
   /**
    * 新增模拟考试答题记录
    *
    * @param choices 题目信息
    * @param preSubJectId 题目id
    * @param preResult 提交的答案