Commit cecc21a3 by 罗志长

fix: 呼吸心率null

parent 72744f3e
...@@ -261,16 +261,18 @@ public class IotProductDeviceService extends IotCommonService { ...@@ -261,16 +261,18 @@ public class IotProductDeviceService extends IotCommonService {
continue; continue;
} }
// 0和255直接跳过 // 0和255直接跳过
if (breatheProperties.getHr() == 255 || breatheProperties.getHr() == 0 ) { Integer propertiesHr = breatheProperties.getHr() != null ? breatheProperties.getHr() : 0;
if (propertiesHr == 255 || propertiesHr == 0 ) {
noPersonCount++; noPersonCount++;
continue; continue;
} }
if (breatheProperties.getBr() == 255 || breatheProperties.getBr() == 0) { Integer propertiesBr = breatheProperties.getBr() != null ? breatheProperties.getBr() : 0;
if (propertiesBr == 255 || propertiesBr == 0) {
noPersonCount++; noPersonCount++;
continue; continue;
} }
hr += breatheProperties.getHr(); hr += propertiesHr;
br += breatheProperties.getBr(); br += propertiesBr;
bodymove += breatheProperties.getBodymove(); bodymove += breatheProperties.getBodymove();
} }
temp = new DeviceInfoContentBreathe(); temp = new DeviceInfoContentBreathe();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment