|
@ -74,7 +74,7 @@ public class IotAnalyzerController extends EnvelopRestEndpoint {
|
|
JSONObject data = new JSONObject();
|
|
JSONObject data = new JSONObject();
|
|
|
|
|
|
// 增加判断,当测量值小于1时,定义为异常值,不进行数据的存储。
|
|
// 增加判断,当测量值小于1时,定义为异常值,不进行数据的存储。
|
|
if(Integer.parseInt(info.get("result").toString()) < 1){
|
|
|
|
|
|
if(Double.parseDouble(info.get("result").toString()) < 1){
|
|
res.put("statusCode", "00");
|
|
res.put("statusCode", "00");
|
|
res.put("desc", info.get("devicesn") + "体征数据异常(小于正常值)。");
|
|
res.put("desc", info.get("devicesn") + "体征数据异常(小于正常值)。");
|
|
return objectMapper.writeValueAsString(res);
|
|
return objectMapper.writeValueAsString(res);
|