From 497b7fd1622e2e4d9d08e2e34862f493d63e2380 Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 6 Jul 2021 16:24:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extract/biz/impl/BizDataStatsServiceImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java index 4e3e6ba211..468bf5ce51 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java +++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java @@ -95,7 +95,6 @@ public class BizDataStatsServiceImpl implements BizDataStatsService { //获取所有网格员 List allGridMembers = getAllGridMembers(formDTO); reloadStaffPatrolStatsData(formDTO, allGridMembers); - String currentDateId = DimIdGenerator.getDateDimId(new Date()); //初始化参数里日期的数据 initStaffPatrolTodayData(formDTO, allGridMembers); From 36503cbd936d8a10d3502969e9a3c32e53bed1ef Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 7 Jul 2021 10:42:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=91=98=E5=B7=A1?= =?UTF-8?q?=E6=9F=A5=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V0.0.15__update_patrol_stats.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql diff --git a/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql b/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql new file mode 100644 index 0000000000..a97fdfaf7e --- /dev/null +++ b/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql @@ -0,0 +1,3 @@ +ALTER TABLE `epmet_user`.`stats_staff_patrol_record_daily` + DROP INDEX `unx_staff`, + ADD UNIQUE INDEX `unx_staff`(`DATE_ID`, `STAFF_ID`, `GRID_ID`) USING BTREE;