Browse Source

uploadProjectInfo改为根据创建时间查询

ftature/screen
wanggongfeng 3 years ago
parent
commit
34c32b5ded
  1. 15
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenProjectDataDao.xml

15
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 0 then 60
when 2 then 100 when 2 then 100
else 80 end as satisfactionScore 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 (select * from(
FROM `esua_epdc_admin`.`sys_dept_config` t select *
WHERE t.`del_flag`= 0) from esua_epdc_events.epdc_item
order by ID)a group by a.EVENT_ID) t1 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_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 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 <![CDATA[ >= ]]> #{yearMonthDay} where DATE_FORMAT(t1.CREATED_TIME, '%Y-%m-%d') <![CDATA[ >= ]]> #{yearMonthDay}
and t1.UPDATED_TIME <![CDATA[ <= ]]> now() and DATE_FORMAT(t1.CREATED_TIME, '%Y-%m-%d') <![CDATA[ <= ]]> now()
order by t2.CREATED_TIME order by t2.CREATED_TIME
</select> </select>
<resultMap type="com.elink.esua.epdc.dto.screen.result.UploadProjectProcessDTO" id="uploadprojectprocessMap"> <resultMap type="com.elink.esua.epdc.dto.screen.result.UploadProjectProcessDTO" id="uploadprojectprocessMap">

Loading…
Cancel
Save