|
@@ -470,6 +470,18 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
//货柜不存在,新增
|
|
|
cloudWalkApiService.containerAdd(new ContainerAddDTO().setContainerCode(String.valueOf(deviceId)));
|
|
|
}
|
|
|
+ } else if (algorithmId != null && AlgorithmTypeEnum.TY.getId() == algorithmId) {
|
|
|
+ //拓元算法
|
|
|
+ //查询登记设备
|
|
|
+ DeviceQueryVO deviceQueryVO = tyApiService.deviceQuery(new DeviceQueryDTO().setCpuId(String.valueOf(deviceId)));
|
|
|
+ Integer status = deviceQueryVO.getStatus();
|
|
|
+ if (status != null && 1000 == status.intValue()) {
|
|
|
+ //未知的设备CPUID,进行登记
|
|
|
+ tyApiService.deviceReg(new DeviceRegDTO()
|
|
|
+ .setCpuId(String.valueOf(deviceId))
|
|
|
+ .setDeviceNumber(String.valueOf(deviceId))
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
Integer deviceType = device.getDeviceType();
|
|
|
if (ObjectUtil.equals(DeviceTypeEnum.TYPE5.getCode(), deviceType)) {
|