| | |
| | | }else {
|
| | | logger.warn("[xml解析] 无法确定行政区划{}的上级行政区划", channelId);
|
| | | }
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | return deviceChannel;
|
| | | }else {
|
| | | if(channelId.length() != 20) {
|
| | |
| | | if (!ObjectUtils.isEmpty(address)) {
|
| | | deviceChannel.setAddress(address);
|
| | | }
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | if (!ObjectUtils.isEmpty(registerWay)) {
|
| | | try {
|
| | | deviceChannel.setRegisterWay(Integer.parseInt(registerWay));
|
| | |
| | | return deviceChannel;
|
| | | case 215:
|
| | | // 业务分组
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | if (!ObjectUtils.isEmpty(parentID)) {
|
| | | if (!parentID.trim().equalsIgnoreCase(device.getDeviceId())) {
|
| | | deviceChannel.setParentId(parentID);
|
| | |
| | | break;
|
| | | case 216:
|
| | | // 虚拟组织
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | if (!ObjectUtils.isEmpty(businessGroupID)) {
|
| | | deviceChannel.setBusinessGroupId(businessGroupID);
|
| | | }
|
| | |
| | | if (status != null) {
|
| | | // ONLINE OFFLINE HIKVISION DS-7716N-E4 NVR的兼容性处理
|
| | | if (status.equals("ON") || status.equals("On") || status.equals("ONLINE") || status.equals("OK")) {
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | }
|
| | | if (status.equals("OFF") || status.equals("Off") || status.equals("OFFLINE")) {
|
| | | deviceChannel.setStatus(0);
|
| | | deviceChannel.setStatus(false);
|
| | | }
|
| | | }else {
|
| | | deviceChannel.setStatus(1);
|
| | | deviceChannel.setStatus(true);
|
| | | }
|
| | |
|
| | | // 经度
|