|
|
|
@ -507,7 +507,7 @@ |
|
|
|
eve.COMMENT_NUM, |
|
|
|
eve.BROWSE_NUM, |
|
|
|
<if test="isRemind != null and isRemind != ''"> |
|
|
|
(case when (process.ID is null and HOUR( timediff( now(), item.CREATED_TIME) ) >= 24) then '1' else '' end) as isRemind, |
|
|
|
(case when (process.STATE = 1001 and HOUR( timediff( now(), item.CREATED_TIME) ) >= 24) then '1' else '' end) as isRemind, |
|
|
|
</if> |
|
|
|
( eve.APPROVE_NUM + eve.OPPOSE_NUM + eve.COMMENT_NUM + eve.BROWSE_NUM ) AS participantsNum, |
|
|
|
(case when d.ID is not null then '1' else '0' end) as isDelay |
|
|
|
@ -518,7 +518,6 @@ |
|
|
|
select b.ID,b.ITEM_ID,b.CREATED_TIME,b.state |
|
|
|
from epdc_item_handle_process b |
|
|
|
where b.DEL_FLAG = '0' |
|
|
|
and b.STATE != 1001 |
|
|
|
and b.CREATED_TIME = ( |
|
|
|
SELECT |
|
|
|
max(CREATED_TIME) |
|
|
|
@ -612,7 +611,7 @@ |
|
|
|
eve.COMMENT_NUM, |
|
|
|
eve.BROWSE_NUM, |
|
|
|
<if test="isRemind != null and isRemind != ''"> |
|
|
|
(case when (process.ID is null and HOUR( timediff( now(), item.CREATED_TIME) ) >= 24) then '1' else '' end) as isRemind, |
|
|
|
(case when (process.STATE = 1001 and HOUR( timediff( now(), item.CREATED_TIME) ) >= 24) then '1' else '' end) as isRemind, |
|
|
|
</if> |
|
|
|
( eve.APPROVE_NUM + eve.OPPOSE_NUM + eve.COMMENT_NUM + eve.BROWSE_NUM ) AS participantsNum, |
|
|
|
(case when d.ID is not null then '1' else '0' end) as isDelay |
|
|
|
@ -623,7 +622,6 @@ |
|
|
|
select b.ID,b.ITEM_ID,b.CREATED_TIME,b.state |
|
|
|
from epdc_item_handle_process b |
|
|
|
where b.DEL_FLAG = '0' |
|
|
|
and b.STATE != 1001 |
|
|
|
and b.CREATED_TIME = ( |
|
|
|
SELECT |
|
|
|
max(CREATED_TIME) |
|
|
|
|