From e0805c3d00aa84f57f47c17bcdcfa12959d3ca76 Mon Sep 17 00:00:00 2001 From: "zhczyx@163.com" Date: Sun, 28 Dec 2025 22:40:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E5=85=B3=E7=AE=A1=E7=90=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=A1=B9=E7=9B=AE=E5=92=8C=E6=A5=BC=E5=AE=87=E5=AD=97?= =?UTF-8?q?=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