|
|
@@ -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>
|