feat:无人机类型增加类型唯一值

This commit is contained in:
gyb 2026-02-26 17:43:09 +08:00
parent e72d969862
commit 8ae8df19b1
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,9 @@ public class AirTypeGeneralEnumVO implements Serializable
/** 子类型 */ /** 子类型 */
private Long subType; private Long subType;
/** 类型编码domain-type-subType */
private String typeCode;
/** 图标 */ /** 图标 */
private String icon; private String icon;
@ -42,4 +45,11 @@ public class AirTypeGeneralEnumVO implements Serializable
/** 是否生效0-失效1-生效 */ /** 是否生效0-失效1-生效 */
private Integer enabled; private Integer enabled;
/**
* 生成类型编码domain-type-subType
*/
public void generateTypeCode() {
this.typeCode = String.format("%d-%d-%d", domain, type, subType);
}
} }