| | |
| | | #{item} |
| | | </foreach> |
| | | |
| | | <if test="query.type == null"> |
| | | <if test="query.category==1"> |
| | | and t1.level = 0 |
| | | </if> |
| | | <if test="query.content != null"> |
| | | and t1.hierarchy_name like concat('%',#{query.content},'%') |
| | | and (t1.hierarchy_name like concat('%',#{query.content},'%') or t2.description like concat('%',#{query.content},'%')) |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime !='' and query.endTime!=null and query.endTime !=''"> |
| | | and t1.create_time between #{query.startTime} and #{query.endTime} |
| | | </if> |
| | | |
| | | ) as o where 1=1 |
| | | <if test="query.reformed != null"> |
| | | and o.state = #{query.reformed} |
| | | <if test="query.state != null"> |
| | | and o.state = #{query.state} |
| | | </if> |
| | | <if test="query.type != null"> |
| | | and o.type = #{query.type} |
| | | </if> |
| | | <if test="query.level != null"> |
| | | and o.level = #{query.level} |
| | | </if> |
| | | order by o.create_time desc |
| | | </select> |
| | | |