临时提交

This commit is contained in:
648540858
2024-08-22 18:05:57 +08:00
parent 6fcf05e04b
commit 0722aa3aeb
30 changed files with 233 additions and 251 deletions

View File

@@ -29,6 +29,12 @@ public class Group implements Comparable<Group>{
@Schema(description = "区域名称")
private String name;
/**
* 父分组ID
*/
@Schema(description = "父分组ID")
private Integer parentId;
/**
* 父区域国标ID
*/
@@ -53,12 +59,6 @@ public class Group implements Comparable<Group>{
@Schema(description = "更新时间")
private String updateTime;
/**
* 平台ID
*/
@Schema(description = "平台ID")
private Integer platformId;
public static Group getInstance(DeviceChannel channel) {
GbCode gbCode = GbCode.decode(channel.getDeviceId());
if (gbCode == null || (!gbCode.getTypeCode().equals("215") && !gbCode.getTypeCode().equals("216"))) {

View File

@@ -8,37 +8,10 @@ import lombok.Data;
*/
@Data
@Schema(description = "业务分组树")
public class GroupTree {
public class GroupTree extends Group{
/**
* 数据库Id
*/
@Schema(description = "数据库Id")
private int dbId;
/**
* 区域国标编号
*/
@Schema(description = "区域国标编号")
private String id;
/**
* 区域名称
*/
@Schema(description = "区域名称")
private String label;
/**
* 父区域国标ID
*/
@Schema(description = "父区域国标ID")
private String parentDeviceId;
/**
* 业务分组ID
*/
@Schema(description = "父区域国标ID")
private String businessGroup;
@Schema(description = "树节点Id")
private String treeId;
@Schema(description = "是否有子节点")
private boolean isLeaf;
@@ -46,13 +19,4 @@ public class GroupTree {
@Schema(description = "类型, 行政区划:0 摄像头: 1")
private int type;
public static GroupTree getInstance(CommonGBChannel channel) {
GroupTree regionTree = new GroupTree();
regionTree.setId(channel.getGbDeviceId());
regionTree.setLabel(channel.getGbName());
regionTree.setParentDeviceId(channel.getGbCivilCode());
regionTree.setType(1);
regionTree.setLeaf(true);
return regionTree;
}
}