临时提交

This commit is contained in:
648540858
2024-10-19 00:04:32 +08:00
parent 277f2db137
commit 46fa390387
9 changed files with 783 additions and 718 deletions

View File

@@ -4,6 +4,7 @@ import com.genersoft.iot.vmp.gb28181.bean.CommonGBChannel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.util.ObjectUtils;
/**
* JT 通道
@@ -49,4 +50,16 @@ public class JTChannel extends CommonGBChannel {
", hasAudio='" + hasAudio + '\'' +
'}';
}
public CommonGBChannel buildCommonGBChannel() {
if (ObjectUtils.isEmpty(this.getGbDeviceId())) {
return null;
}
if (ObjectUtils.isEmpty(this.getGbName())) {
this.setGbName(this.getName());
}
this.setJtChannelId(this.getId());
return this;
}
}