【修改】c语言增加 测试答案字段
This commit is contained in:
@@ -65,6 +65,10 @@ public class ExamQuestion extends TenantBaseDO {
|
|||||||
// @Excel(name = "解析(带样式)")
|
// @Excel(name = "解析(带样式)")
|
||||||
private String analysis;
|
private String analysis;
|
||||||
|
|
||||||
|
/**c语言参考答案*/
|
||||||
|
private String answer;
|
||||||
|
|
||||||
|
|
||||||
/** 知识点 */
|
/** 知识点 */
|
||||||
// @Excel(name = "知识点")
|
// @Excel(name = "知识点")
|
||||||
private String pointNames;
|
private String pointNames;
|
||||||
|
@@ -521,7 +521,6 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
// 日志记录或跳过处理
|
|
||||||
System.err.println("ID格式错误:" + e.getMessage());
|
System.err.println("ID格式错误:" + e.getMessage());
|
||||||
}
|
}
|
||||||
examQuestion.setCreateTeacher(questionExamineDO.getCreateTeacher());
|
examQuestion.setCreateTeacher(questionExamineDO.getCreateTeacher());
|
||||||
@@ -750,7 +749,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
|||||||
public QueImportRespVO importUserList(List<QuemportExcelVO> list, Boolean updateSupport) {
|
public QueImportRespVO importUserList(List<QuemportExcelVO> list, Boolean updateSupport) {
|
||||||
// 1.1 参数校验
|
// 1.1 参数校验
|
||||||
if (CollUtil.isEmpty(list)) {
|
if (CollUtil.isEmpty(list)) {
|
||||||
throw exception(USER_IMPORT_LIST_IS_EMPTY);
|
throw exception(QESESTION_IMPORT_LIST_IS_EMPTY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. 遍历,逐个创建 or 更新
|
// 2. 遍历,逐个创建 or 更新
|
||||||
|
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="quLevel" column="qu_level" />
|
<result property="quLevel" column="qu_level" />
|
||||||
<result property="content" column="content" />
|
<result property="content" column="content" />
|
||||||
<result property="contentText" column="content_text" />
|
<result property="contentText" column="content_text" />
|
||||||
|
<result property="answer" column="answer" />
|
||||||
<result property="analysis" column="analysis" />
|
<result property="analysis" column="analysis" />
|
||||||
<result property="pointNames" column="point_names" />
|
<result property="pointNames" column="point_names" />
|
||||||
<result property="keywords" column="keywords" />
|
<result property="keywords" column="keywords" />
|
||||||
@@ -49,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="selectExamQuestionVo">
|
<sql id="selectExamQuestionVo">
|
||||||
select qu_id, qu_bank_id, qu_num,qu_bank_name, chapterId_dict_text,subject_name, qu_level,
|
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>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@@ -144,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="chapteridDictText != null">chapterId_dict_text,</if>
|
<if test="chapteridDictText != null">chapterId_dict_text,</if>
|
||||||
<if test="subjectName != null">subject_name,</if>
|
<if test="subjectName != null">subject_name,</if>
|
||||||
<if test="quLevel != null">qu_level,</if>
|
<if test="quLevel != null">qu_level,</if>
|
||||||
|
<if test="answer != null">answer,</if>
|
||||||
<if test="content != null">content,</if>
|
<if test="content != null">content,</if>
|
||||||
<if test="contentText != null">content_text,</if>
|
<if test="contentText != null">content_text,</if>
|
||||||
<if test="analysis != null">analysis,</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="chapteridDictText != null">#{chapteridDictText},</if>
|
||||||
<if test="subjectName != null">#{subjectName},</if>
|
<if test="subjectName != null">#{subjectName},</if>
|
||||||
<if test="quLevel != null">#{quLevel},</if>
|
<if test="quLevel != null">#{quLevel},</if>
|
||||||
|
<if test="answer != null">#{answer},</if>
|
||||||
<if test="content != null">#{content},</if>
|
<if test="content != null">#{content},</if>
|
||||||
<if test="contentText != null">#{contentText},</if>
|
<if test="contentText != null">#{contentText},</if>
|
||||||
<if test="analysis != null">#{analysis},</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="subjectName != null">subject_name = #{subjectName},</if>
|
||||||
<if test="quLevel != null">qu_level = #{quLevel},</if>
|
<if test="quLevel != null">qu_level = #{quLevel},</if>
|
||||||
<if test="content != null">content = #{content},</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="contentText != null">content_text = #{contentText},</if>
|
||||||
<if test="analysis != null">analysis = #{analysis},</if>
|
<if test="analysis != null">analysis = #{analysis},</if>
|
||||||
<if test="pointNames != null">point_names = #{pointNames},</if>
|
<if test="pointNames != null">point_names = #{pointNames},</if>
|
||||||
|
@@ -213,6 +213,8 @@ public interface ErrorCodeConstants {
|
|||||||
ErrorCode QESESTION_TYPE_POINTS_ERROR = new ErrorCode(1_008_009_023, "没有对应的章节知识点");
|
ErrorCode QESESTION_TYPE_POINTS_ERROR = new ErrorCode(1_008_009_023, "没有对应的章节知识点");
|
||||||
ErrorCode QESESTION_CHOICEAB_ERROR = new ErrorCode(1_008_010_024, "选项 A 和 B 为必填项");
|
ErrorCode QESESTION_CHOICEAB_ERROR = new ErrorCode(1_008_010_024, "选项 A 和 B 为必填项");
|
||||||
ErrorCode QESESTION_CHOICE_ERROR = new ErrorCode(1_008_010_024, "答案不在有效选项范围内");
|
ErrorCode QESESTION_CHOICE_ERROR = new ErrorCode(1_008_010_024, "答案不在有效选项范围内");
|
||||||
|
ErrorCode QESESTION_IMPORT_LIST_IS_EMPTY = new ErrorCode(1_008_010_024, "导入试题数据不能为空!");
|
||||||
|
|
||||||
// ========== rabbit ==========
|
// ========== rabbit ==========
|
||||||
ErrorCode RABBITMQ_CONNECT_EXISTS = new ErrorCode(1_005_005_111, "连接失败");
|
ErrorCode RABBITMQ_CONNECT_EXISTS = new ErrorCode(1_005_005_111, "连接失败");
|
||||||
ErrorCode RABBITMQ_NOT_EXISTS = new ErrorCode(1_005_005_011, "接收试题出错");
|
ErrorCode RABBITMQ_NOT_EXISTS = new ErrorCode(1_005_005_011, "接收试题出错");
|
||||||
|
Reference in New Issue
Block a user