|
@ -183,9 +183,9 @@ public class DataInputService {
|
|
|
if(StringUtils.isBlank(data)){
|
|
|
throw new ServiceException("设备数据data不能为空");
|
|
|
}
|
|
|
// if(data.length()>60000){
|
|
|
// throw new ServiceException("设备数据data超过最大允许字符");
|
|
|
// }
|
|
|
if(json.length()>60000){
|
|
|
throw new ServiceException("jsonData超过最大允许字符");
|
|
|
}
|
|
|
// String categoryCode = jsonObject.getString("categoryCode");
|
|
|
// if(StringUtils.isBlank(categoryCode)){
|
|
|
// throw new ServiceException("设备类型不能为空");
|
|
@ -198,7 +198,7 @@ public class DataInputService {
|
|
|
IotDeviceUploadRecordDO recordDO = new IotDeviceUploadRecordDO();
|
|
|
recordDO.setDeviceSn(deviceSn);
|
|
|
recordDO.setHospital(hospital);
|
|
|
recordDO.setJsonData(data);
|
|
|
recordDO.setJsonData(json);
|
|
|
recordDO.setCategoryCode("uploadDeviceData");
|
|
|
recordDO.setStatus(0);
|
|
|
recordDO.setCreateTime(new Date());
|