|
|
|
@ -2116,8 +2116,8 @@ |
|
|
|
from epdc_item i |
|
|
|
left join ( |
|
|
|
select b.ID,b.ITEM_ID,b.CREATED_TIME,b.state,b.CLOSE_CHECK_ID |
|
|
|
from epdc_item_handle_process b where 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.CREATED_TIME = ( |
|
|
|
SELECT max(CREATED_TIME) from epdc_item_handle_process where DEL_FLAG = 0 and b.ITEM_ID = ITEM_ID |
|
|
|
) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
where i.DEL_FLAG='0' |
|
|
|
|