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