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 @@