|
|
|
@ -571,13 +571,12 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and b.HANDLER_DEPT != '网格化平台' |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
WHERE item.DEL_FLAG = '0' |
|
|
|
<if test="itemState != null and itemState != '' and itemState != '10'"> |
|
|
|
and (process.state is not null and process.state not in (11,14,15)) |
|
|
|
and (process.state is not null and process.state not in (11,14,15,16)) |
|
|
|
and (item.IS_PEOPLE = '0' or (item.IS_PEOPLE = '1' and item.PEOPLE_FLAG = '0')) |
|
|
|
</if> |
|
|
|
<if test="itemState != null and itemState != '' and itemState == '0'"> |
|
|
|
@ -819,19 +818,11 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and b.HANDLER_DEPT != '网格化平台' |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
WHERE item.DEL_FLAG = '0' |
|
|
|
and (process.state is not null and process.state not in (11,14,15,1002)) |
|
|
|
and (process.state is not null and process.state in (1004,1106)) |
|
|
|
and item.IS_PEOPLE = '1' |
|
|
|
and ( |
|
|
|
(item.PEOPLE_FLAG = '0' |
|
|
|
AND item.evaluation_score = '0' |
|
|
|
AND item.evaluation_time <![CDATA[ <= ]]> ( NOW() - interval 24 HOUR )) |
|
|
|
or item.PEOPLE_FLAG in ('1','2') |
|
|
|
) |
|
|
|
<if test="typeKey != null and typeKey != '' and typeKey == 'grid_party'"> |
|
|
|
and (process.state != 0 or process.state is null) |
|
|
|
</if> |
|
|
|
@ -931,7 +922,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and b.HANDLER_DEPT != '网格化平台' |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
@ -1040,14 +1030,13 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and b.HANDLER_DEPT != '网格化平台' |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
WHERE item.DEL_FLAG = '0' |
|
|
|
and (item.IS_PEOPLE = '0' or (item.IS_PEOPLE = '1' and item.PEOPLE_FLAG = '0')) |
|
|
|
<if test="itemState != null and itemState != '' and itemState != '10'"> |
|
|
|
and (process.state is not null and process.state not in (11,14,15)) |
|
|
|
and (process.state is not null and process.state not in (11,14,15,16)) |
|
|
|
</if> |
|
|
|
<if test="typeKey != null and typeKey != '' and typeKey == 'grid_party'"> |
|
|
|
and (process.state != 0 or process.state is null) |
|
|
|
@ -1158,7 +1147,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and (b.HANDLER_DEPT != '网格化平台' or (b.HANDLER_DEPT = '网格化平台' and b.STATE in (1060,1065))) |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
@ -1262,7 +1250,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and (b.HANDLER_DEPT != '网格化平台' or (b.HANDLER_DEPT = '网格化平台' and b.STATE in (1060,1065))) |
|
|
|
) process on process.ITEM_ID = item.ID |
|
|
|
@ -1344,7 +1331,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and (b.HANDLER_DEPT != '网格化平台' or (b.HANDLER_DEPT = '网格化平台' and b.STATE in (1060,1065))) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
@ -2158,6 +2144,7 @@ |
|
|
|
when '2' then '非常满意' |
|
|
|
else '' |
|
|
|
end as evaluationScoreName, |
|
|
|
process.state AS processState, |
|
|
|
i.EVALUATION_CONTENT, |
|
|
|
i.EVALUATION_TIME |
|
|
|
FROM epdc_item i |
|
|
|
@ -2171,7 +2158,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and (b.HANDLER_DEPT != '网格化平台' or (b.HANDLER_DEPT = '网格化平台' and b.STATE in (1060,1065))) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
@ -2267,7 +2253,6 @@ |
|
|
|
from epdc_item_handle_process |
|
|
|
where b.ITEM_ID = ITEM_ID |
|
|
|
and DEL_FLAG = '0' |
|
|
|
and STATE != 16 |
|
|
|
) |
|
|
|
and (b.HANDLER_DEPT != '网格化平台' or (b.HANDLER_DEPT = '网格化平台' and b.STATE in (1060,1065))) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
@ -2450,7 +2435,6 @@ |
|
|
|
max(CREATED_TIME) |
|
|
|
from epdc_item_handle_process |
|
|
|
where DEL_FLAG = 0 |
|
|
|
and STATE != 16 |
|
|
|
and b.ITEM_ID = ITEM_ID |
|
|
|
) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
@ -2484,7 +2468,6 @@ |
|
|
|
max(CREATED_TIME) |
|
|
|
from epdc_item_handle_process |
|
|
|
where DEL_FLAG='0' |
|
|
|
and STATE != 16 |
|
|
|
and b.ITEM_ID = ITEM_ID |
|
|
|
) |
|
|
|
) process on process.ITEM_ID = i.ID |
|
|
|
|