|
@@ -29,10 +29,18 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- AND (t1.clip_name LIKE '%${clip}%')
|
|
|
- AND (t1.shot_name LIKE '%${shot}%')
|
|
|
- AND (t1.plan_name LIKE '%${plan}%')
|
|
|
- AND (t1.team_leader LIKE '%${leader}%')
|
|
|
+ <if test="clip!= null and clip!='' ">
|
|
|
+ AND (t1.clip_name LIKE '%${clip}%')
|
|
|
+ </if>
|
|
|
+ <if test="shot!= null and shot!='' ">
|
|
|
+ AND (t1.shot_name LIKE '%${shot}%')
|
|
|
+ </if>
|
|
|
+ <if test="plan!= null and plan!='' ">
|
|
|
+ AND (t1.plan_name LIKE '%${plan}%')
|
|
|
+ </if>
|
|
|
+ <if test="leader!= null and leader!='' ">
|
|
|
+ AND t1.team_leader LIKE '%${leader}%'
|
|
|
+ </if>
|
|
|
GROUP BY t1.md5
|
|
|
ORDER BY ${target} ${order}
|
|
|
</select>
|