From e38b864f1b73b935e797568755c61983c682adc4 Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Fri, 3 Jul 2020 09:59:22 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=92=8C=E6=9F=A5=E8=AF=A2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD=E5=92=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?0=E7=9A=84=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/project/ProjectDao.xml | 32 +++++++++---------- .../stats/FactAgencyProjectDailyEntity.java | 28 ++++++++-------- .../stats/FactAgencyProjectMonthlyEntity.java | 28 ++++++++-------- .../stats/FactGridProjectDailyEntity.java | 28 ++++++++-------- .../stats/FactGridProjectMonthlyEntity.java | 28 ++++++++-------- 5 files changed, 72 insertions(+), 72 deletions(-) diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml index 108f2add31..6a0a73c526 100644 --- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml +++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml @@ -27,8 +27,8 @@ ( SELECT "处理中" AS "name", - pending_total AS "value", - pending_ratio AS "ratioInt" + IFNULL(pending_total,0) AS "value", + IFNULL(pending_ratio,0) AS "ratioInt" FROM fact_agency_project_daily WHERE @@ -42,8 +42,8 @@ ( SELECT "已结案" AS "name", - closed_total AS "value", - closed_ratio AS "ratioInt" + IFNULL(closed_total,0) AS "value", + IFNULL(closed_ratio,0) AS "ratioInt" FROM fact_agency_project_daily WHERE @@ -84,9 +84,9 @@ SELECT da.id AS "agencyId", da.agency_name AS "name", - fapd.pending_total AS "value", + IFNULL(fapd.pending_total,0) AS "value", "处理中" AS "type", - fapd.project_total + IFNULL(fapd.project_total,0) FROM fact_agency_project_daily fapd LEFT JOIN dim_agency da ON fapd.agency_id = da.id @@ -100,9 +100,9 @@ SELECT da.id AS "agencyId", da.agency_name AS "name", - fapd.closed_total AS "value", + IFNULL(fapd.closed_total,0) AS "value", "已结案" AS "type", - fapd.project_total + IFNULL(fapd.project_total,0) FROM fact_agency_project_daily fapd LEFT JOIN dim_agency da ON fapd.agency_id = da.id @@ -124,9 +124,9 @@ SELECT da.id AS "agencyId", dg.grid_name AS "name", - fgpd.pending_total AS "value", + IFNULL(fgpd.pending_total,0) AS "value", "处理中" AS "type", - fgpd.project_total + IFNULL(fgpd.project_total,0) FROM fact_grid_project_daily fgpd LEFT JOIN dim_agency da ON fgpd.agency_id = da.id @@ -143,9 +143,9 @@ SELECT da.id AS "agencyId", dg.grid_name AS "name", - fgpd.closed_total AS "value", + IFNULL(fgpd.closed_total,0) AS "value", "已结案" AS "type", - fgpd.project_total + IFNULL(fgpd.project_total,0) FROM fact_grid_project_daily fgpd LEFT JOIN dim_agency da ON fgpd.agency_id = da.id @@ -167,7 +167,7 @@ ( SELECT DATE_FORMAT(date_id, "%Y/%m/%d") AS "date", - pending_incr AS "value", + IFNULL(pending_incr,0) AS "value", "处理中" AS "type", date_id FROM @@ -183,7 +183,7 @@ ( SELECT DATE_FORMAT(date_id, "%Y/%m/%d") AS "date", - closed_incr AS "value", + IFNULL(closed_incr,0) AS "value", "已结案" AS "type", date_id FROM @@ -203,7 +203,7 @@ ( SELECT DATE_FORMAT(CONCAT(month_id,"00"), "%Y/%m") AS "date", - pending_incr AS "value", + IFNULL(pending_incr,0) AS "value", "处理中" AS "type", month_id FROM @@ -219,7 +219,7 @@ ( SELECT DATE_FORMAT(CONCAT(month_id,"00"), "%Y/%m") AS "date", - closed_incr AS "value", + IFNULL(closed_incr,0) AS "value", "已结案" AS "type", month_id FROM diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectDailyEntity.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectDailyEntity.java index 9f609723f4..baff107cf3 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectDailyEntity.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectDailyEntity.java @@ -82,71 +82,71 @@ public class FactAgencyProjectDailyEntity extends BaseEpmetEntity { /** * 截止当日项目总数 【当前组织及下级项目总数】 */ - private Integer projectTotal; + private Integer projectTotal = 0; /** * 截止当日处理中项目数 【当前组织及下级所有未结案项目总数】 */ - private Integer pendingTotal; + private Integer pendingTotal = 0; /** * 截止当日处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal pendingRatio; + private BigDecimal pendingRatio = new BigDecimal("0"); /** * 截止当日已结案项目数 【当前组织及下级已结案项目总数】 */ - private Integer closedTotal; + private Integer closedTotal = 0; /** * 截止当日已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal closedRatio; + private BigDecimal closedRatio = new BigDecimal("0"); /** * 截止当日已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 */ - private Integer resolvedTotal; + private Integer resolvedTotal = 0; /** * 截止当日已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 */ - private BigDecimal resolvedRatio; + private BigDecimal resolvedRatio = new BigDecimal("0"); /** * 截止当日已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 */ - private Integer unresolvedTotal; + private Integer unresolvedTotal = 0; /** * 截止当日已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 */ - private BigDecimal unresolvedRatio; + private BigDecimal unresolvedRatio = new BigDecimal("0"); /** * 当日项目总数 【当前组织及下级项目总数】 */ - private Integer projectIncr; + private Integer projectIncr = 0; /** * 当日处理中项目数 【当前组织及下级前一日新增处理中项目数】 */ - private Integer pendingIncr; + private Integer pendingIncr = 0; /** * 当日已结案项目数 【当前组织及下级前一日新增结案项目数】 */ - private Integer closedIncr; + private Integer closedIncr = 0; /** * 当日已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 */ - private Integer resolvedIncr; + private Integer resolvedIncr = 0; /** * 当日已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 */ - private Integer unresolvedIncr; + private Integer unresolvedIncr = 0; } diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectMonthlyEntity.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectMonthlyEntity.java index 8b147a3f18..7a9fc7c50a 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectMonthlyEntity.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactAgencyProjectMonthlyEntity.java @@ -72,71 +72,71 @@ public class FactAgencyProjectMonthlyEntity extends BaseEpmetEntity { /** * 截止当月项目总数 【当前组织及下级项目总数】 */ - private Integer projectTotal; + private Integer projectTotal = 0; /** * 截止当月处理中项目数 【当前组织及下级所有未结案项目总数】 */ - private Integer pendingTotal; + private Integer pendingTotal = 0; /** * 截止当月处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal pendingRatio; + private BigDecimal pendingRatio = new BigDecimal("0"); /** * 截止当月已结案项目数 【当前组织及下级已结案项目总数】 */ - private Integer closedTotal; + private Integer closedTotal = 0; /** * 截止当月已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal closedRatio; + private BigDecimal closedRatio = new BigDecimal("0"); /** * 截止当月已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 */ - private Integer resolvedTotal; + private Integer resolvedTotal = 0; /** * 截止当月已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 */ - private BigDecimal resolvedRatio; + private BigDecimal resolvedRatio = new BigDecimal("0"); /** * 截止当月已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 */ - private Integer unresolvedTotal; + private Integer unresolvedTotal = 0; /** * 截止当月已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 */ - private BigDecimal unresolvedRatio; + private BigDecimal unresolvedRatio = new BigDecimal("0"); /** * 当月项目总数 【当前组织及下级前一月新增项目数】 */ - private Integer projectIncr; + private Integer projectIncr = 0; /** * 当月处理中项目数 【当前组织及下级前一月新增处理中项目数】 */ - private Integer pendingIncr; + private Integer pendingIncr = 0; /** * 当月已结案项目数 【当前组织及下级前一月新增结案项目数】 */ - private Integer closedIncr; + private Integer closedIncr = 0; /** * 当月已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 */ - private Integer resolvedIncr; + private Integer resolvedIncr = 0; /** * 当月已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 */ - private Integer unresolvedIncr; + private Integer unresolvedIncr = 0; } diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectDailyEntity.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectDailyEntity.java index 93c1f71499..e507f74500 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectDailyEntity.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectDailyEntity.java @@ -82,71 +82,71 @@ public class FactGridProjectDailyEntity extends BaseEpmetEntity { /** * 截止当日网格下项目总数 【当前组织及下级项目总数】 */ - private Integer projectTotal; + private Integer projectTotal = 0; /** * 截止当日网格下处理中项目数 【当前组织及下级所有未结案项目总数】 */ - private Integer pendingTotal; + private Integer pendingTotal = 0; /** * 截止当日网格下处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal pendingRatio; + private BigDecimal pendingRatio = new BigDecimal("0"); /** * 截止当日网格下已结案项目数 【当前组织及下级已结案项目总数】 */ - private Integer closedTotal; + private Integer closedTotal = 0; /** * 截止当日网格下已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal closedRatio; + private BigDecimal closedRatio = new BigDecimal("0"); /** * 截止当日已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 */ - private Integer resolvedTotal; + private Integer resolvedTotal = 0; /** * 截止当日已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 */ - private BigDecimal resolvedRatio; + private BigDecimal resolvedRatio = new BigDecimal("0"); /** * 截止当日已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 */ - private Integer unresolvedTotal; + private Integer unresolvedTotal = 0; /** * 截止当日已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 */ - private BigDecimal unresolvedRatio; + private BigDecimal unresolvedRatio = new BigDecimal("0"); /** * 当日已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 */ - private Integer resolvedIncr; + private Integer resolvedIncr = 0; /** * 当日已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 */ - private Integer unresolvedIncr; + private Integer unresolvedIncr = 0; /** * 当日网格下项目总数 【该网格下项目总数】 */ - private Integer projectIncr; + private Integer projectIncr = 0; /** * 当日网格下处理中项目数 【该网格下未结案项目总数】 */ - private Integer pendingIncr; + private Integer pendingIncr = 0; /** * 当日网格下已结案项目数 【该网格下已结案项目总数】 */ - private Integer closedIncr; + private Integer closedIncr = 0; } diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectMonthlyEntity.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectMonthlyEntity.java index dd79ecc9fa..1ed377a64f 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectMonthlyEntity.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/entity/stats/FactGridProjectMonthlyEntity.java @@ -72,71 +72,71 @@ public class FactGridProjectMonthlyEntity extends BaseEpmetEntity { /** * 截止当月项目总数 【当前组织及下级项目总数】 */ - private Integer projectTotal; + private Integer projectTotal = 0; /** * 截止当月处理中项目数 【当前组织及下级所有未结案项目总数】 */ - private Integer pendingTotal; + private Integer pendingTotal = 0; /** * 截止当月处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal pendingRatio; + private BigDecimal pendingRatio = new BigDecimal("0"); /** * 截止当月已结案项目数 【当前组织及下级已结案项目总数】 */ - private Integer closedTotal; + private Integer closedTotal = 0; /** * 截止当月已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 */ - private BigDecimal closedRatio; + private BigDecimal closedRatio = new BigDecimal("0"); /** * 截止当月已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 */ - private Integer resolvedTotal; + private Integer resolvedTotal = 0; /** * 截止当月已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 */ - private BigDecimal resolvedRatio; + private BigDecimal resolvedRatio = new BigDecimal("0"); /** * 截止当月已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 */ - private Integer unresolvedTotal; + private Integer unresolvedTotal = 0; /** * 截止当月已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 */ - private BigDecimal unresolvedRatio; + private BigDecimal unresolvedRatio = new BigDecimal("0"); /** * 当月项目总数 【当前组织及下级前一月新增项目数】 */ - private Integer projectIncr; + private Integer projectIncr = 0; /** * 当月处理中项目数 【当前组织及下级前一月新增处理中项目数】 */ - private Integer pendingIncr; + private Integer pendingIncr = 0; /** * 当月已结案项目数 【当前组织及下级前一月新增结案项目数】 */ - private Integer closedIncr; + private Integer closedIncr = 0; /** * 当月已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 */ - private Integer resolvedIncr; + private Integer resolvedIncr = 0; /** * 当月已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 */ - private Integer unresolvedIncr; + private Integer unresolvedIncr = 0; } From fd114ed3ade3ae36b90c3558f9f7312cde36e64f Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Fri, 3 Jul 2020 10:03:34 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-report-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/data-report/data-report-server/pom.xml | 2 +- .../data-statistical-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/data-statistical/data-statistical-server/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epmet-module/data-report/data-report-server/deploy/docker-compose-dev.yml b/epmet-module/data-report/data-report-server/deploy/docker-compose-dev.yml index 3d87107f55..b9bd8a3081 100644 --- a/epmet-module/data-report/data-report-server/deploy/docker-compose-dev.yml +++ b/epmet-module/data-report/data-report-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: data-report-server: container_name: data-report-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/data-report-server:0.3.23 + image: 192.168.1.130:10080/epmet-cloud-dev/data-report-server:0.3.24 ports: - "8109:8109" network_mode: host # 使用现有网络 diff --git a/epmet-module/data-report/data-report-server/pom.xml b/epmet-module/data-report/data-report-server/pom.xml index b585d39d7a..6fd896409d 100644 --- a/epmet-module/data-report/data-report-server/pom.xml +++ b/epmet-module/data-report/data-report-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - 0.3.23 + 0.3.24 data-report-server diff --git a/epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-dev.yml b/epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-dev.yml index 3cea9aa7f5..4be99dbdd1 100644 --- a/epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-dev.yml +++ b/epmet-module/data-statistical/data-statistical-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: data-statistical-server: container_name: data-statistical-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/data-statistical-server:0.3.32 + image: 192.168.1.130:10080/epmet-cloud-dev/data-statistical-server:0.3.33 ports: - "8108:8108" network_mode: host # 使用现有网络 diff --git a/epmet-module/data-statistical/data-statistical-server/pom.xml b/epmet-module/data-statistical/data-statistical-server/pom.xml index 35dc700f49..78d8b27df6 100644 --- a/epmet-module/data-statistical/data-statistical-server/pom.xml +++ b/epmet-module/data-statistical/data-statistical-server/pom.xml @@ -2,7 +2,7 @@ - 0.3.32 + 0.3.33 data-statistical com.epmet From 1e5e59e965012dd46d5cde0625e9f90e1d976ac3 Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Fri, 3 Jul 2020 10:25:45 +0800 Subject: [PATCH 03/17] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/project/ProjectDao.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml index 6a0a73c526..cd08762de4 100644 --- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml +++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml @@ -86,7 +86,7 @@ da.agency_name AS "name", IFNULL(fapd.pending_total,0) AS "value", "处理中" AS "type", - IFNULL(fapd.project_total,0) + IFNULL(fapd.project_total,0) AS "projectTotal" FROM fact_agency_project_daily fapd LEFT JOIN dim_agency da ON fapd.agency_id = da.id @@ -102,7 +102,7 @@ da.agency_name AS "name", IFNULL(fapd.closed_total,0) AS "value", "已结案" AS "type", - IFNULL(fapd.project_total,0) + IFNULL(fapd.project_total,0) AS "projectTotal" FROM fact_agency_project_daily fapd LEFT JOIN dim_agency da ON fapd.agency_id = da.id @@ -113,7 +113,7 @@ ) ) a ORDER BY - a.project_total DESC + a.projectTotal DESC UPDATE grid_visited - SET updated_by = #{updatedBy}, + SET + visit_time = #{updatedTime}, + updated_by = #{updatedBy}, updated_time = #{updatedTime} WHERE id = #{id} + + + UPDATE grid_visited + SET del_flag = '1', + updated_time = now() + WHERE + + ID = #{id} + + \ No newline at end of file From 3ef42758ea73b039090271b6915aa94d539b77c5 Mon Sep 17 00:00:00 2001 From: sunyuchao Date: Fri, 3 Jul 2020 10:34:42 +0800 Subject: [PATCH 06/17] =?UTF-8?q?Bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/project/ProjectDao.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml index cd08762de4..01ed21f5e3 100644 --- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml +++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/project/ProjectDao.xml @@ -7,7 +7,7 @@