|
@@ -160,8 +160,13 @@
|
|
|
<if test='hasSubmit != null and hasSubmit.toString()=="0".toString()'>
|
|
|
AND iip.status_ = 0
|
|
|
</if>
|
|
|
- <if test="ids != null">
|
|
|
- AND FIND_IN_SET(iip.id_,#{ids})
|
|
|
+ <if test="searchType != null and searchType != ''">
|
|
|
+ <if test="searchType == 'MUSIC_PATROL_ITEM'">
|
|
|
+ AND iip.conclusion_status_ = 1 AND iip.memo_=''
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 'INSPECTION_ITEM_PLAN'">
|
|
|
+ AND iip.status_ = 0 AND iip.memo_ = '' AND DATE_FORMAT(iip.plan_start_,'%Y-%m-%d') < DATE_FORMAT(NOW(),'%Y-%m-%d')
|
|
|
+ </if>
|
|
|
</if>
|
|
|
<if test="startTime != null">
|
|
|
AND iip.plan_start_ >= #{startTime}
|