From 34c32b5dedb54d56f39c7af4734379afae5fc568 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 14 Apr 2022 15:05:21 +0800 Subject: [PATCH] =?UTF-8?q?uploadProjectInfo=E6=94=B9=E4=B8=BA=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/screen/ScreenProjectDataDao.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenProjectDataDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenProjectDataDao.xml index a99c07d1..23fb8e86 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenProjectDataDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenProjectDataDao.xml @@ -59,14 +59,17 @@ when 0 then 60 when 2 then 100 else 80 end as satisfactionScore - from (select * from(select * 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) - order by ID)a group by a.EVENT_ID) t1 + from (select * from( + select * + 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