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