From 118ad97a8dc97b3b14904d1950ea2822177a9ec5 Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Mon, 30 Sep 2024 09:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BD=91=E5=85=B3=E9=87=87?= =?UTF-8?q?=E9=9B=86=E5=8D=A1=E5=88=AB=E5=90=8D=E5=92=8C=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/data/service/DataQueryService.java | 3 + .../vo/GatewayCardInfoPageReqVO.java | 3 + .../vo/GatewayCardInfoSaveReqVO.java | 3 + .../vo/GatewayCardParamsRespVO.java | 4 + .../vo/GatewayCardParamsSaveReqVO.java | 3 + .../gatewayinfo/GatewayCardInfoDO.java | 6 + .../gatewayinfo/GatewayCardParamsDO.java | 6 + .../system/equip/equipInfo/EquipInfoForm.vue | 212 +++++++++++++----- 8 files changed, 190 insertions(+), 50 deletions(-) diff --git a/imt-server/imt-module-data/imt-module-data-biz/src/main/java/com/inspur/module/data/service/DataQueryService.java b/imt-server/imt-module-data/imt-module-data-biz/src/main/java/com/inspur/module/data/service/DataQueryService.java index 9c8a646..db95a7e 100644 --- a/imt-server/imt-module-data/imt-module-data-biz/src/main/java/com/inspur/module/data/service/DataQueryService.java +++ b/imt-server/imt-module-data/imt-module-data-biz/src/main/java/com/inspur/module/data/service/DataQueryService.java @@ -135,6 +135,9 @@ public class DataQueryService implements IDataQueryService{ String tableName = "gateway_fanuc_data"; String columnName = "power_time,process_num,total_process,work_time"; Map resultMap = getAllData2ChartData(equipId,tableName,columnName, startTime, endTime); + if(resultMap == null){ + return null; + } List workTimeList = (List) resultMap.get("work_time"); List powerTimeList = (List) resultMap.get("power_time"); resultMap.put("work_time", workTimeList.stream().map(w -> w / 60.0).collect(Collectors.toList())); diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoPageReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoPageReqVO.java index f84c6e0..005aebb 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoPageReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoPageReqVO.java @@ -23,6 +23,9 @@ public class GatewayCardInfoPageReqVO extends PageParam { @Schema(description = "采集卡名称") private String cardName; + @Schema(description = "采集卡别名") + private String cardAlias; + @Schema(description = "采集卡与influxdb映射表名") private String cardTableMapping; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoSaveReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoSaveReqVO.java index 1d0a61f..9b55361 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoSaveReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardInfoSaveReqVO.java @@ -24,6 +24,9 @@ public class GatewayCardInfoSaveReqVO { @Schema(description = "采集卡名称") private String cardName; + @Schema(description = "采集卡别名") + private String cardAlias; + @Schema(description = "采集卡与influxdb映射表名") private String cardTableMapping; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsRespVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsRespVO.java index 3b8979c..c639e0c 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsRespVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsRespVO.java @@ -30,6 +30,10 @@ public class GatewayCardParamsRespVO { @ExcelProperty("通道名称") private String channelName; + @Schema(description = "通道别名") + @ExcelProperty("通道别名") + private String channelAlias; + @Schema(description = "参数映射名称") @ExcelProperty("参数映射名称") private String paramMappingName; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsSaveReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsSaveReqVO.java index 628ddc9..7258d96 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsSaveReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/admin/gatewayinfo/vo/GatewayCardParamsSaveReqVO.java @@ -24,6 +24,9 @@ public class GatewayCardParamsSaveReqVO { @Schema(description = "通道名称") private String channelName; + @Schema(description = "通道别名") + private String channelAlias; + @Schema(description = "参数映射名称") private String paramMappingName; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardInfoDO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardInfoDO.java index b8fc2cd..6b30a5b 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardInfoDO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardInfoDO.java @@ -41,6 +41,12 @@ public class GatewayCardInfoDO extends BaseDO { * 采集卡名称 */ private String cardName; + + /** + * 采集卡别名 + */ + private String cardAlias; + /** * 采集卡与influxdb映射表名 */ diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardParamsDO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardParamsDO.java index aed606e..a790d0a 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardParamsDO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/dataobject/gatewayinfo/GatewayCardParamsDO.java @@ -41,6 +41,12 @@ public class GatewayCardParamsDO extends BaseDO { * 通道名称 */ private String channelName; + + /** + * 通道别名 + */ + private String channelAlias; + /** * 参数映射名称 */ diff --git a/imt-ui/src/views/system/equip/equipInfo/EquipInfoForm.vue b/imt-ui/src/views/system/equip/equipInfo/EquipInfoForm.vue index 0011bbe..58bac94 100644 --- a/imt-ui/src/views/system/equip/equipInfo/EquipInfoForm.vue +++ b/imt-ui/src/views/system/equip/equipInfo/EquipInfoForm.vue @@ -1,68 +1,163 @@