From 2e643b3ff43061e2e280ac805d636b39cbf1d0cd Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Wed, 17 Dec 2025 14:57:44 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=B8=BA=E6=9C=80=E6=96=B0=EF=BC=8C=E8=A7=A3=E5=86=B3=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E7=BB=B4=E6=8A=A4=E8=BF=87=E6=9C=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-center-business-controller/dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data-center-business-controller/dockerfile b/data-center-business-controller/dockerfile index 5cff86d..3f1777e 100644 --- a/data-center-business-controller/dockerfile +++ b/data-center-business-controller/dockerfile @@ -1,4 +1,7 @@ -FROM registry.ap-northeast-1.aliyuncs.com/southwave/jdk17-template:latest +# FROM registry.ap-northeast-1.aliyuncs.com/southwave/jdk17-template:latest +FROM amazoncorretto:17-alpine +# 安装 fontconfig 和 DejaVu 字体 (这是一个通用且免费的字体包) +RUN apk --no-cache add fontconfig ttf-dejavu # FROM openjdk:17-jdk ENV TZ=Asia/Tokyo WORKDIR /home/data-center-business From b36b66c374acbac2521f96781b96956a215c140c Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Fri, 19 Dec 2025 18:37:56 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/SyncTrendsStatsService.java | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/data-center-business-service/src/main/java/com/techsor/datacenter/business/service/SyncTrendsStatsService.java b/data-center-business-service/src/main/java/com/techsor/datacenter/business/service/SyncTrendsStatsService.java index cd23a06..4ec667c 100644 --- a/data-center-business-service/src/main/java/com/techsor/datacenter/business/service/SyncTrendsStatsService.java +++ b/data-center-business-service/src/main/java/com/techsor/datacenter/business/service/SyncTrendsStatsService.java @@ -291,11 +291,31 @@ public class SyncTrendsStatsService { if (resultDTO != null) { AuroraTrendsStatsTotal auroraTrendsStatsTotal = new AuroraTrendsStatsTotal(); auroraTrendsStatsTotal.setReceiverDeviceId(0L); - auroraTrendsStatsTotal.setSenderDeviceId(resultDTO.getSenderDeviceIdDelta()); - auroraTrendsStatsTotal.setDispatch(resultDTO.getSenderDispatchDelta()); - auroraTrendsStatsTotal.setAlert(Long.valueOf(resultDTO.getSenderAlertDelta())); - auroraTrendsStatsTotal.setAlertCancel(Long.valueOf(resultDTO.getSenderAlertCancelDelta())); - auroraTrendsStatsTotal.setSenderBuilding(Long.valueOf(resultDTO.getBuildingIdCount())); + if (resultDTO.getRecieverDeviceIdDelta() != null){ + auroraTrendsStatsTotal.setSenderDeviceId(resultDTO.getSenderDeviceIdDelta()); + }else { + auroraTrendsStatsTotal.setSenderDeviceId(0L); + } + if (resultDTO.getSenderDispatchDelta() != null){ + auroraTrendsStatsTotal.setDispatch(resultDTO.getSenderDispatchDelta()); + }else { + auroraTrendsStatsTotal.setDispatch(0L); + } + if (resultDTO.getSenderAlertDelta() != null){ + auroraTrendsStatsTotal.setAlert(Long.valueOf(resultDTO.getSenderAlertDelta())); + }else { + auroraTrendsStatsTotal.setAlert(0L); + } + if (resultDTO.getSenderAlertCancelDelta() != null){ + auroraTrendsStatsTotal.setAlertCancel(Long.valueOf(resultDTO.getSenderAlertCancelDelta())); + }else{ + auroraTrendsStatsTotal.setAlertCancel(0L); + } + if (resultDTO.getBuildingIdCount() != null){ + auroraTrendsStatsTotal.setSenderBuilding(Long.valueOf(resultDTO.getBuildingIdCount())); + }else{ + auroraTrendsStatsTotal.setSenderBuilding(0L); + } auroraTrendsStatsTotal.setCreatedDate(Date.from(yesterdayMidnight.toInstant())); this.auroraTrendsStatsTotalMapper.insert(auroraTrendsStatsTotal); } From 46706a66b9d36bd027a88321a7967dcc8e964b33 Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Sun, 21 Dec 2025 22:28:20 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8C=85?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-center-business-controller/buildPush-prod.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 data-center-business-controller/buildPush-prod.sh diff --git a/data-center-business-controller/buildPush-prod.sh b/data-center-business-controller/buildPush-prod.sh new file mode 100644 index 0000000..b1bec43 --- /dev/null +++ b/data-center-business-controller/buildPush-prod.sh @@ -0,0 +1,7 @@ +aws configure set aws_access_key_id AKIAR26KHSVRUEAKRBPZ +aws configure set aws_secret_access_key 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 +aws configure set default.region ap-northeast-1 +aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 126588786019.dkr.ecr.ap-northeast-1.amazonaws.com +docker build -t 126588786019.dkr.ecr.ap-northeast-1.amazonaws.com/aeon-prod/spf-business:latest --build-arg JAR_FILE=target/data-center-business-controller-0.0.1-SNAPSHOT.jar --build-arg LIB_DIR=target/lib --build-arg CONFIG_DIR=target/config . +docker push 126588786019.dkr.ecr.ap-northeast-1.amazonaws.com/aeon-prod/spf-business:latest + From 139e804ecc7038fe27b3f399405ab7a7a6d2d1b0 Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Sun, 28 Dec 2025 00:30:27 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=BA=E6=B0=B8=E6=97=BA=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/application.properties | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data-center-business-controller/src/main/resources/config/application.properties b/data-center-business-controller/src/main/resources/config/application.properties index 737b7f9..a4afd4c 100644 --- a/data-center-business-controller/src/main/resources/config/application.properties +++ b/data-center-business-controller/src/main/resources/config/application.properties @@ -71,12 +71,12 @@ mail.smtp.host=email-smtp.ap-northeast-1.amazonaws.com mail.smtp.port=465 mail.smtp.auth=true mail.smtp.ssl=true -mail.sender.username=AKIAVRXFMB43Z4Q6WGZN -mail.sender.password_encrypted=true -mail.sender.password=a/52R0rao7ksRMvl1j17fVEmPCw7gC9OreHDqWOE+S7sgmoQT0YgoLRJqOlJqX7e -mail.sender.sendername=datacenter-info -mail.sender.from=alert@ttkdatatechbuild.com -#邮件通知服务开关 +mail.sender.username=AKIAR26KHSVR3E7N7V3X +mail.sender.password_encrypted=false +mail.sender.password=BFe3PePmvmKJKF/cwVxKq2C3EG10IcYQ+fNq0Eccl0PU +mail.sender.sendername=smbil-support@ifmservice.jp +mail.sender.from=smbil-support@ifmservice.jp +#\u90AE\u4EF6\u901A\u77E5\u670D\u52A1\u5F00\u5173 mail.send.switch=true Spring.mvc.hiddenmethod.filter.enabled=true From e0805c3d00aa84f57f47c17bcdcfa12959d3ca76 Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Sun, 28 Dec 2025 22:40:06 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=E7=BD=91=E5=85=B3=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E5=92=8C=E6=A5=BC=E5=AE=87?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration/V64__getewayclients_update.sql | 3 + .../dao/ex/GatewayClientsMapperExt.java | 3 +- .../mappers/auto/GatewayClientsMapper.xml | 42 +++++- .../mappers/ex/GatewayClientsMapperExt.xml | 21 ++- .../dto/gateway/GatewayClientsAddParam.java | 6 + .../dto/gateway/GatewayClientsEditParam.java | 6 + .../gateway/GatewayClientsQueryResponse.java | 37 ++++++ .../business/model/GatewayClients.java | 68 ++++++++++ .../business/model/GatewayClientsExample.java | 120 ++++++++++++++++++ .../service/GatewayClientsService.java | 2 +- .../impl/GatewayClientsServiceImpl.java | 8 +- 11 files changed, 304 insertions(+), 12 deletions(-) create mode 100644 data-center-business-controller/src/main/resources/db/migration/V64__getewayclients_update.sql create mode 100644 data-center-business-model/src/main/java/com/techsor/datacenter/business/dto/gateway/GatewayClientsQueryResponse.java diff --git a/data-center-business-controller/src/main/resources/db/migration/V64__getewayclients_update.sql b/data-center-business-controller/src/main/resources/db/migration/V64__getewayclients_update.sql new file mode 100644 index 0000000..c758be2 --- /dev/null +++ b/data-center-business-controller/src/main/resources/db/migration/V64__getewayclients_update.sql @@ -0,0 +1,3 @@ +ALTER TABLE `gateway_clients` +ADD COLUMN `project_id` BIGINT NULL DEFAULT 0 AFTER `alert_switch`, +ADD COLUMN `building_id` BIGINT NULL DEFAULT 0 AFTER `project_id`; \ No newline at end of file diff --git a/data-center-business-dao/src/main/java/com/techsor/datacenter/business/dao/ex/GatewayClientsMapperExt.java b/data-center-business-dao/src/main/java/com/techsor/datacenter/business/dao/ex/GatewayClientsMapperExt.java index 662ac69..bcb0dbd 100644 --- a/data-center-business-dao/src/main/java/com/techsor/datacenter/business/dao/ex/GatewayClientsMapperExt.java +++ b/data-center-business-dao/src/main/java/com/techsor/datacenter/business/dao/ex/GatewayClientsMapperExt.java @@ -4,6 +4,7 @@ import com.techsor.datacenter.business.dao.auto.DeviceInfoMapper; import com.techsor.datacenter.business.dao.auto.GatewayClientsMapper; import com.techsor.datacenter.business.dto.device.DeviceSearchParams; import com.techsor.datacenter.business.dto.gateway.GatewayClientsQueryParam; +import com.techsor.datacenter.business.dto.gateway.GatewayClientsQueryResponse; import com.techsor.datacenter.business.model.DeviceInfo; import com.techsor.datacenter.business.model.GatewayClients; import com.techsor.datacenter.business.vo.asset.ApiDeviceInfoVO; @@ -21,6 +22,6 @@ import java.util.Map; @Mapper public interface GatewayClientsMapperExt extends GatewayClientsMapper { - List getListPage(@Param("param") GatewayClientsQueryParam param,@Param("companyId") Long companyId); + List getListPage(@Param("param") GatewayClientsQueryParam param, @Param("companyId") Long companyId); } diff --git a/data-center-business-dao/src/main/resources/mappers/auto/GatewayClientsMapper.xml b/data-center-business-dao/src/main/resources/mappers/auto/GatewayClientsMapper.xml index 66cd365..f86f604 100644 --- a/data-center-business-dao/src/main/resources/mappers/auto/GatewayClientsMapper.xml +++ b/data-center-business-dao/src/main/resources/mappers/auto/GatewayClientsMapper.xml @@ -19,6 +19,8 @@ + + id, client_id, client_name, address, online_status, last_updata_ts, create_ts, flag, company_id, data_amount_threshold, data_amount_threshold_alarm, data_accumulated_totals, - alert_switch + alert_switch, project_id, building_id