and (item.IS_PEOPLE = '0' or (item.IS_PEOPLE = '1' and item.PEOPLE_FLAG = '0'))
and (process.state is not null and process.state in (14,1065))
and ((process.state is not null and process.state in (14,1065)) or (process.state is not null and process.state = 1060 and process.GRID_NEXTPARTNAME = '北尚诉办'))
<iftest="peopleFlag != null and peopleFlag != ''">
AND item.PEOPLE_FLAG = #{peopleFlag}
</if>
@ -1253,7 +1253,7 @@
LEFT JOIN epdc_events eve ON item.EVENT_ID = eve.ID AND eve.DEL_FLAG = '0'
left join epdc_item_fusing_delay_record d on d.ITEM_ID = item.ID and d.DEL_FLAG = '0'
and (item.IS_PEOPLE = '0' or (item.IS_PEOPLE = '1' and item.PEOPLE_FLAG = '0'))
and (process.state is not null and process.state in (14,1065))
and ((process.state is not null and process.state in (14,1065)) or (process.state is not null and process.state = 1060 and process.GRID_NEXTPARTNAME = '北尚诉办'))
<iftest="peopleFlag != null and peopleFlag != ''">