when t1.ITEM_STATE = 0 and (select COUNT(1) from esua_epdc_events.epdc_item_handle_process where DEL_FLAG ='0' and ITEM_ID = t1.ID) = 1 then 1
when (t1.ITEM_STATE = 0 or t1.ITEM_STATE = 5) and (select COUNT(1) from esua_epdc_events.epdc_item_handle_process where DEL_FLAG ='0' and ITEM_ID = t1.ID) > 1 then 2
else '' end as projectLevel
else '' end as projectLevel,
case t1.EVALUATION_SCORE
when 0 then 60
when 2 then 100
else 80 end as satisfactionScore
from (select * from(select * from esua_epdc_events.epdc_item where DEL_FLAG = '0'