diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml index 9af9370f1..d8ad75c8a 100755 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml @@ -516,8 +516,13 @@ left join epdc_item_fusing_delay_record d on d.ITEM_ID = item.ID and d.DEL_FLAG = '0' left join ( select b.ID,b.ITEM_ID,b.CREATED_TIME,b.state - from epdc_item_handle_process b where b.STATE != 1001 and b.CREATED_TIME = ( - SELECT max(CREATED_TIME) from epdc_item_handle_process where b.ITEM_ID = ITEM_ID + from epdc_item_handle_process b where b.DEL_FLAG = '0' and b.STATE != 1001 and b.CREATED_TIME = ( + SELECT + max(CREATED_TIME) + from epdc_item_handle_process + where b.ITEM_ID = ITEM_ID + and HANDLER_DEPT != '网格化平台' + and DEL_FLAG = '0' ) ) process on process.ITEM_ID = item.ID WHERE item.DEL_FLAG = '0'