diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/UploadProjectInfoDTO.java b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/UploadProjectInfoDTO.java index a9ecd255..848adbe9 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/UploadProjectInfoDTO.java +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/UploadProjectInfoDTO.java @@ -118,6 +118,9 @@ public class UploadProjectInfoDTO implements Serializable { */ private Integer satisfactionScore; - + /** + * 项目创建人ID + */ + private String projectCreator; } 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 25d95bc1..d209cce8 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 @@ -22,6 +22,7 @@ + @@ -35,6 +36,7 @@ SUBSTRING_INDEX(t1.PARENT_DEPT_IDS,',',-1) as parentId, PARENT_DEPT_IDS as allParentIds, t1.ID as projectId, + t1.CREATED_BY as projectCreator, t1.NICK_NAME as linkName, t1.MOBILE as linkMobile, LEFT(t1.ITEM_CONTENT,50)projectTitle, diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml index 3fccfd47..9ab010d4 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml @@ -2018,15 +2018,21 @@ SELECT gr.id as orgId, sum(total.topicTotal) as topicTotal, sum(total.projectTotal) as projectTotal from - (select eu.DEPT_ID AS GRID_ID, - count(eu.id) as regUserTotal, - 0 AS joinUser, - 0 as issueTotal, - 0 as topicTotal, - 0 as projectTotal - from esua_epdc_user.epdc_user eu - where eu.DEL_FLAG=0 - group by eu.DEPT_ID + (select tmp1.DEPT_ID AS GRID_ID, + count(tmp1.id) as regUserTotal, + 0 AS joinUser, + 0 as issueTotal, + 0 as topicTotal, + 0 as projectTotal + from + (SELECT eut.id, CASE WHEN (eut.`DEPT_ID` IS NULL or eut.`DEPT_ID` = 0 or eut.`DEPT_ID` = '') THEN ttt.grid_id ELSE eut.`DEPT_ID` end AS dept_id FROM esua_epdc_user.epdc_user eut LEFT JOIN + (SELECT tt.user_id, + tt.grid_id + FROM( + SELECT eugr1.`USER_ID`, eugr1.`GRID_ID` + FROM esua_epdc_user.`epdc_user_grid_relation` eugr1 WHERE eugr1.`DEL_FLAG` = '0' + ORDER BY `CREATED_TIME`) tt + GROUP BY tt.user_id) ttt on ttt.user_id = eut.id WHERE eut.`DEL_FLAG` = '0') tmp1 GROUP BY tmp1.dept_id union all select be.DEPT_ID GRID_ID, @@ -2135,7 +2141,7 @@ SELECT gr.id as orgId, and gr.type_key='grid_party' AND gr.`id` NOT IN( SELECT t.`dept_id` FROM `esua_epdc_admin`.`sys_dept_config` t - WHERE t.`del_flag`= 0) + WHERE t.`del_flag`= 0 AND t.congig_type ]]> 'leader_dept')