| | |
| | | <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.entity.ExamPaper"> |
| | | <id column="id" property="id"/> |
| | | <result column="name" property="name"/> |
| | | <result column="subject_id" property="subjectId"/> |
| | | <result column="paper_type" property="paperType"/> |
| | | <result column="score" property="score"/> |
| | | <result column="question_count" property="questionCount"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id, name, subject_id, paper_type, score, question_count, suggest_time,visibility |
| | | id, name, paper_type, score, question_count, suggest_time,visibility |
| | | ,deduct_type,deduct_type_score,create_user, create_time,deleted |
| | | </sql> |
| | | |
| | |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and tep.name like concat('%',#{name},'%') |
| | | </if> |
| | | <if test="subjectId != null "> |
| | | and tep.subject_id= #{subjectId} |
| | | </if> |
| | | <if test="paperType != null "> |
| | | and tep.paper_type= #{paperType} |
| | |
| | | FROM t_exam_paper |
| | | <where> |
| | | and deleted=0 |
| | | <if test="subjectId != null "> |
| | | and subject_id=#{subjectId} |
| | | </if> |
| | | <if test="levelId != null "> |
| | | and grade_level=#{levelId} |
| | | </if> |