| | |
| | | <if test="subjectId != null"> |
| | | and subject_id = #{subjectId} |
| | | </if> |
| | | <if test="paperName != null and paperName != ''"> |
| | | and paper_name like concat('%',#{paperName},'%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_exam_paper_answer |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectByPaperName" resultMap="BaseResultMap" parameterType="java.lang.String"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_exam_paper_answer |
| | | <where> |
| | | <if test="paperName != null and paperName != ''"> |
| | | paper_name = #{paperName} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |