Browse Source

更改待处理列表逻辑

feature/dangjian
wanggongfeng 3 years ago
parent
commit
8ff0dd0e01
  1. 9
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

9
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'

Loading…
Cancel
Save