feat:无人机类型增加类型唯一值
This commit is contained in:
parent
e72d969862
commit
8ae8df19b1
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue