fuliqi
2024-06-07 0879a157fd7c85ec34f1dac51a2b113bf1f5f2f6
src/main/resources/mapper/ExamTemplateMapper.xml
@@ -3,13 +3,14 @@
<mapper namespace="com.ycl.jxkg.mapper.ExamTemplateMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.vo.ExamTemplateVO">
    <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.entity.ExamTemplate">
        <result column="name" property="name" />
        <result column="subject_id" property="subjectId" />
        <result column="score" property="score" />
        <result column="visibility" property="visibility" />
        <result column="suggest_time" property="suggestTime" />
        <result column="deduct_type" property="deductType" />
        <result column="deduct_type_score" property="deductTypeScore" />
        <result column="single_choice" property="singleChoice" />
        <result column="multiple_choice" property="multipleChoice" />
        <result column="gap_filling" property="gapFilling" />
@@ -28,10 +29,6 @@
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TET.name,
@@ -40,6 +37,7 @@
            TET.visibility,
            TET.suggest_time,
            TET.deduct_type,
            TET.deduct_type_score,
            TET.single_choice,
            TET.multiple_choice,
            TET.gap_filling,
@@ -70,6 +68,7 @@
            TET.visibility,
            TET.suggest_time,
            TET.deduct_type,
            TET.deduct_type_score,
            TET.single_choice,
            TET.multiple_choice,
            TET.gap_filling,
@@ -98,4 +97,7 @@
        </where>
    </select>
    <delete id="removeById">
        delete from t_exam_template where id = #{id}
    </delete>
</mapper>