diff --git a/epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenProjectDataDao.xml b/epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenProjectDataDao.xml index 92c80d2..681e72b 100644 --- a/epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenProjectDataDao.xml +++ b/epdc-cloud-analysis-pc/src/main/resources/mapper/screen/ScreenProjectDataDao.xml @@ -56,14 +56,18 @@ 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 - from (select * from(select *, CASE WHEN EVALUATION_SCORE = 2 THEN 100 WHEN EVALUATION_SCORE = 0 THEN 60 ELSE 80 END AS satisfactionScore from esua_epdc_events.epdc_item where GRID_ID not in ( SELECT t.`dept_id` - FROM `esua_epdc_admin`.`sys_dept_config` t - WHERE t.`del_flag`= 0) + from (select * from( + select *, + CASE WHEN EVALUATION_SCORE = 2 THEN 100 WHEN EVALUATION_SCORE = 0 THEN 60 ELSE 80 END AS satisfactionScore + from esua_epdc_events.epdc_item + where del_flag = 0 and GRID_ID not in ( SELECT t.`dept_id` + FROM `esua_epdc_admin`.`sys_dept_config` t + WHERE t.`del_flag`= 0) order by ID)a group by a.EVENT_ID) t1 left join esua_epdc_events.epdc_img t2 on t1.EVENT_ID = t2.REFERENCE_ID and t1.DEL_FLAG = '0' left join esua_epdc_events.epdc_item_handle_process t3 on t3.ITEM_ID = t1.ID and t3.DEL_FLAG = '0' and t3.STATE = 10 - where t1.UPDATED_TIME = ]]> #{yearMonthDay} - and t1.UPDATED_TIME now() + where DATE_FORMAT(t1.CREATED_TIME, '%Y-%m-%d') = ]]> #{yearMonthDay} + and DATE_FORMAT(t1.CREATED_TIME, '%Y-%m-%d') now() order by t2.CREATED_TIME