From 8ae8df19b1d463ef95910d0cbaf73bc4fc3544b4 Mon Sep 17 00:00:00 2001 From: gyb Date: Thu, 26 Feb 2026 17:43:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=97=A0=E4=BA=BA=E6=9C=BA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=A2=9E=E5=8A=A0=E7=B1=BB=E5=9E=8B=E5=94=AF=E4=B8=80?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/device/api/domain/AirTypeGeneralEnumVO.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ruoyi-api/tuoheng-api-device/src/main/java/com/ruoyi/device/api/domain/AirTypeGeneralEnumVO.java b/ruoyi-api/tuoheng-api-device/src/main/java/com/ruoyi/device/api/domain/AirTypeGeneralEnumVO.java index 6068788..65b3dec 100644 --- a/ruoyi-api/tuoheng-api-device/src/main/java/com/ruoyi/device/api/domain/AirTypeGeneralEnumVO.java +++ b/ruoyi-api/tuoheng-api-device/src/main/java/com/ruoyi/device/api/domain/AirTypeGeneralEnumVO.java @@ -34,6 +34,9 @@ public class AirTypeGeneralEnumVO implements Serializable /** 子类型 */ private Long subType; + /** 类型编码(domain-type-subType) */ + private String typeCode; + /** 图标 */ private String icon; @@ -42,4 +45,11 @@ public class AirTypeGeneralEnumVO implements Serializable /** 是否生效:0-失效,1-生效 */ private Integer enabled; + + /** + * 生成类型编码(domain-type-subType) + */ + public void generateTypeCode() { + this.typeCode = String.format("%d-%d-%d", domain, type, subType); + } }