| @@ -35,15 +35,18 @@ | |||||
| <if test=" null != endTime "> | <if test=" null != endTime "> | ||||
| and `end_time` <= #{endTime} | and `end_time` <= #{endTime} | ||||
| </if> | </if> | ||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != name and ''!=name "> | |||||
| and `name` like concat('%',#{name},'%') | |||||
| </if> | |||||
| <if test=" null != statusList "> | <if test=" null != statusList "> | ||||
| and status in | and status in | ||||
| <foreach collection="statusList" index="index" item="statusItem" open="(" separator="," close=")"> | <foreach collection="statusList" index="index" item="statusItem" open="(" separator="," close=")"> | ||||
| #{statusItem} | #{statusItem} | ||||
| </foreach> | </foreach> | ||||
| </if> | </if> | ||||
| <if test=" null != name and ''!=name "> | |||||
| and `name` like concat('%',#{name},'%') | |||||
| </if> | |||||
| order by createtime desc | order by createtime desc | ||||
| </sql> | </sql> | ||||