src/main/resources/mapper/ExamPaperAnswerMapper.xml
@@ -271,5 +271,16 @@ 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> </mapper>