Explorar el Código

mod: 考试编号查询

闪电 hace 3 semanas
padre
commit
ebef6ec2b1

+ 1 - 0
smart-steward-mapper/src/main/resources/mapper/exam/ExamPaperMapper.xml

@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
29 29
         select ep.*, epc.name as category_name from exam_paper as ep
30 30
         left join exam_paper_category as epc on ep.category_id = epc.id
31 31
         <where>
32
+            <if test="id != null "> and ep.id = #{id}</if>
32 33
             <if test="categoryId != null "> and category_id = #{categoryId}</if>
33 34
             <if test="paperName != null  and paperName != ''"> and paper_name like concat('%', #{paperName}, '%')</if>
34 35
             <if test="paperDescription != null  and paperDescription != ''"> and paper_description = #{paperDescription}</if>