优化列表展示效果

This commit is contained in:
648540858
2022-06-15 10:40:45 +08:00
parent c801ee6218
commit 5fae9a7b34
7 changed files with 127 additions and 127 deletions

View File

@@ -106,7 +106,8 @@ public class GbStreamServiceImpl implements IGbStreamService {
deviceChannel.setStatus(1);
deviceChannel.setParentId(catalogId ==null?gbStream.getCatalogId():catalogId);
deviceChannel.setRegisterWay(1);
if (catalogId.length() <= 10) { // 父节点是行政区划,则设置CivilCode使用此行政区划
if (catalogId.length() > 0 && catalogId.length() <= 10) {
// 父节点是行政区划,则设置CivilCode使用此行政区划
deviceChannel.setCivilCode(catalogId);
}else {
deviceChannel.setCivilCode(platform.getAdministrativeDivision());