2 Ревизии 2f66c827d8 ... 9b1e44e981

Автор SHA1 Съобщение Дата
  闪电 9b1e44e981 Merge branch 'master' of http://39.164.159.226:3000/hnsh-smart-steward/smart-steward-api преди 3 седмици
  闪电 ebef6ec2b1 mod: 考试编号查询 преди 3 седмици
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      smart-steward-mapper/src/main/resources/mapper/exam/ExamPaperMapper.xml

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

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