|
@ -19,9 +19,6 @@ import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.math.NumberUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@ -675,7 +672,7 @@ public class DeviceService {
|
|
|
String value1 = data.getValue1();
|
|
|
// 餐后
|
|
|
if (index % 2 == 0) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueBefore, minValueBefore)) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueAfter ,minValueAfter )) {
|
|
|
msgContent += patient.getName() + "血糖异常(" + value1 + "mmol/L),请处理";
|
|
|
|
|
|
//体征异常,更新体征数据状态
|
|
@ -683,7 +680,7 @@ public class DeviceService {
|
|
|
patientHealthIndexDao.save(data);
|
|
|
}
|
|
|
} else { //餐前
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueAfter, minValueAfter)) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueBefore, minValueBefore)) {
|
|
|
msgContent += patient.getName() + "血糖异常(" + value1 + "mmol/L),请处理";
|
|
|
|
|
|
//体征异常,更新体征数据状态
|