| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.monkeylessey.mapper.ExamTemplateMapper"> |
| | | <mapper namespace="com.ycl.jxkg.mapper.ExamTemplateMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.vo.admin.exam.ExamTemplateVO"> |
| | | <result column="exam_paper_id" property="examPaperId" /> |
| | | <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.vo.ExamTemplateVO"> |
| | | <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="single_choice" property="singleChoice" /> |
| | | <result column="multiple_choice" property="multipleChoice" /> |
| | | <result column="gap_filling" property="gapFilling" /> |
| | |
| | | <result column="gap_score" property="gapScore" /> |
| | | <result column="true_false_score" property="trueFalseScore" /> |
| | | <result column="short_answer_score" property="shortAnswerScore" /> |
| | | <result column="calculation_score" property="calculationScore" /> |
| | | <result column="calculation__score" property="calculationScore" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="create_time" property="createTime" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TET.exam_paper_id, |
| | | TET.name, |
| | | TET.subject_id, |
| | | TET.score, |
| | | TET.visibility, |
| | | TET.suggest_time, |
| | | TET.deduct_type, |
| | | TET.single_choice, |
| | | TET.multiple_choice, |
| | | TET.gap_filling, |
| | |
| | | TET.true_false_score, |
| | | TET.short_answer_score, |
| | | TET.calculation__score, |
| | | TET.create_user, |
| | | TET.create_time, |
| | | TET.id |
| | | FROM |
| | | t_exam_template TET |
| | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TET.exam_paper_id, |
| | | TET.name, |
| | | TET.subject_id, |
| | | TET.score, |
| | | TET.visibility, |
| | | TET.suggest_time, |
| | | TET.deduct_type, |
| | | TET.single_choice, |
| | | TET.multiple_choice, |
| | | TET.gap_filling, |
| | |
| | | TET.true_false_score, |
| | | TET.short_answer_score, |
| | | TET.calculation__score, |
| | | TET.create_user, |
| | | TET.create_time, |
| | | TET.id |
| | | FROM |
| | | t_exam_template TET |
| | | WHERE |
| | | <where> |
| | | TET.deleted = 0 |
| | | <if test="query.name!=null and query.name !=''"> |
| | | and name like concat ('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.subjectId!=null "> |
| | | and subject_id = #{query.subjectId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |