【修改】题型更改的答案不更改 mysql浏览器文件夹试题
This commit is contained in:
@@ -147,7 +147,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
||||
if (fileUploads!=null&&fileUploads.size()>0){
|
||||
fileUploads.replaceAll(fileUpload -> {
|
||||
// 设置文件名(如果文件名为空)
|
||||
if (StringUtils.isBlank(fileUpload.getFileName())) {
|
||||
if (fileUpload.getFileName() == null || fileUpload.getFileName().isEmpty()) {
|
||||
switch (fileUpload.getFileType()) {
|
||||
case "0":
|
||||
fileUpload.setFileName("素材");
|
||||
@@ -208,15 +208,13 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
||||
public int updateExamQuestion(ExamQuestion examQuestion)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
List<ExamQuestionAnswer> answerList = examQuestion.getAnswerList();
|
||||
List<SysFileUpload> fileUploads = examQuestion.getFileUploads();
|
||||
ExamQuestionScore questionScore = examQuestion.getQuestionScores();
|
||||
List<ExamQuestionKeyword> examQuestionKeywords = examQuestion.getQuestionKeywords();
|
||||
if (!(("Mysql".equals(examQuestion.getCourseName()))&&("程序设计".equals(examQuestion.getSubjectName())))){
|
||||
List<String> excludedSubjects = Arrays.asList("程序设计", "网络题", "文件处理");
|
||||
//这三种题型的考点,在考点设置就已经做好,不需要在题目层更新
|
||||
if (!excludedSubjects.contains(examQuestion.getSubjectName())) {
|
||||
if (answerList!=null&&answerList.size()>0){
|
||||
//先删除试题的答案
|
||||
examQuestionAnswerMapper.deleteExamQuestionAnswerByQuesId(examQuestion.getQuId());
|
||||
@@ -238,7 +236,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
||||
//赋值
|
||||
fileUploads.replaceAll(fileUpload -> {
|
||||
// 设置文件名(如果文件名为空)
|
||||
if (StringUtils.isBlank(fileUpload.getFileName())) {
|
||||
if (fileUpload.getFileName() == null || fileUpload.getFileName().isEmpty()) {
|
||||
switch (fileUpload.getFileType()) {
|
||||
case "0":
|
||||
fileUpload.setFileName("素材");
|
||||
|
Reference in New Issue
Block a user