|
@@ -139,7 +139,7 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
|
|
|
|
String productCode = writeVO.getProductCode();
|
|
|
String deviceUUId = writeVO.getDeviceUUId();
|
|
|
- String deviceId = tags.get("deviceId");
|
|
|
+ String deviceId = tags.get("device_id");
|
|
|
|
|
|
//判断上报数据对应产品是否注册,如未注册则为非法
|
|
|
Map<String,ProductMapVO> productMapList = dmpProductService.getProductMap();
|
|
@@ -175,6 +175,7 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
|
dmpDeviceInfo.setServiceStatus(1);
|
|
|
dmpDeviceInfo.setDeviceUuid(UUIDUtils.uuid());
|
|
|
dmpDeviceService.save(dmpDeviceInfo);
|
|
|
+ dmpProductService.deleteDeviceCache();
|
|
|
|
|
|
deviceUUId = dmpDeviceInfo.getDeviceUuid();
|
|
|
|
|
@@ -186,7 +187,7 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
|
dmpDeviceStatus.setProductCode(dmpDeviceInfo.getProductCode());
|
|
|
dmpDeviceStatusService.save(dmpDeviceStatus);
|
|
|
|
|
|
- dmpProductService.deleteDeviceCache();
|
|
|
+ deviceMapList = dmpProductService.getDeviceMap();
|
|
|
}else if(deviceMapList.containsKey(deviceId)){
|
|
|
LambdaQueryWrapper<DmpDevice> queryWrapper = Wrappers.lambdaQuery();
|
|
|
queryWrapper.eq(DmpDevice::getDeleteFlag,0)
|
|
@@ -207,6 +208,7 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
|
dmpDeviceInfo.setServiceStatus(1);
|
|
|
dmpDeviceInfo.setDeviceUuid(UUIDUtils.uuid());
|
|
|
dmpDeviceService.save(dmpDeviceInfo);
|
|
|
+ dmpProductService.deleteDeviceCache();
|
|
|
|
|
|
deviceUUId = dmpDeviceInfo.getDeviceUuid();
|
|
|
|
|
@@ -218,7 +220,7 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
|
dmpDeviceStatus.setProductCode(dmpDeviceInfo.getProductCode());
|
|
|
dmpDeviceStatusService.save(dmpDeviceStatus);
|
|
|
|
|
|
- dmpProductService.deleteDeviceCache();
|
|
|
+ deviceMapList = dmpProductService.getDeviceMap();
|
|
|
}
|
|
|
}
|
|
|
|