【修改】c语言增加 测试答案字段
This commit is contained in:
@@ -65,6 +65,10 @@ public class ExamQuestion extends TenantBaseDO {
|
||||
// @Excel(name = "解析(带样式)")
|
||||
private String analysis;
|
||||
|
||||
/**c语言参考答案*/
|
||||
private String answer;
|
||||
|
||||
|
||||
/** 知识点 */
|
||||
// @Excel(name = "知识点")
|
||||
private String pointNames;
|
||||
|
@@ -521,7 +521,6 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
||||
}
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
// 日志记录或跳过处理
|
||||
System.err.println("ID格式错误:" + e.getMessage());
|
||||
}
|
||||
examQuestion.setCreateTeacher(questionExamineDO.getCreateTeacher());
|
||||
@@ -750,7 +749,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
||||
public QueImportRespVO importUserList(List<QuemportExcelVO> list, Boolean updateSupport) {
|
||||
// 1.1 参数校验
|
||||
if (CollUtil.isEmpty(list)) {
|
||||
throw exception(USER_IMPORT_LIST_IS_EMPTY);
|
||||
throw exception(QESESTION_IMPORT_LIST_IS_EMPTY);
|
||||
}
|
||||
|
||||
// 2. 遍历,逐个创建 or 更新
|
||||
|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="quLevel" column="qu_level" />
|
||||
<result property="content" column="content" />
|
||||
<result property="contentText" column="content_text" />
|
||||
<result property="answer" column="answer" />
|
||||
<result property="analysis" column="analysis" />
|
||||
<result property="pointNames" column="point_names" />
|
||||
<result property="keywords" column="keywords" />
|
||||
@@ -49,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
<sql id="selectExamQuestionVo">
|
||||
select qu_id, qu_bank_id, qu_num,qu_bank_name, chapterId_dict_text,subject_name, qu_level,
|
||||
content, content_text, analysis, point_names, keywords, manual, create_time, creator, update_time, updater, deleted ,status,audit ,course_name, specialty_name from exam_question
|
||||
content, content_text, analysis,answer, point_names, keywords, manual, create_time, creator, update_time, updater, deleted ,status,audit ,course_name, specialty_name from exam_question
|
||||
</sql>
|
||||
|
||||
|
||||
@@ -144,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chapteridDictText != null">chapterId_dict_text,</if>
|
||||
<if test="subjectName != null">subject_name,</if>
|
||||
<if test="quLevel != null">qu_level,</if>
|
||||
<if test="answer != null">answer,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="contentText != null">content_text,</if>
|
||||
<if test="analysis != null">analysis,</if>
|
||||
@@ -169,6 +171,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chapteridDictText != null">#{chapteridDictText},</if>
|
||||
<if test="subjectName != null">#{subjectName},</if>
|
||||
<if test="quLevel != null">#{quLevel},</if>
|
||||
<if test="answer != null">#{answer},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="contentText != null">#{contentText},</if>
|
||||
<if test="analysis != null">#{analysis},</if>
|
||||
@@ -223,6 +226,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="subjectName != null">subject_name = #{subjectName},</if>
|
||||
<if test="quLevel != null">qu_level = #{quLevel},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="answer != null">answer = #{answer},</if>
|
||||
<if test="contentText != null">content_text = #{contentText},</if>
|
||||
<if test="analysis != null">analysis = #{analysis},</if>
|
||||
<if test="pointNames != null">point_names = #{pointNames},</if>
|
||||
|
Reference in New Issue
Block a user