|
@ -445,18 +445,18 @@ public class DeviceService {
|
|
|
patient.setStandardStatus(1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
//连续5次正常,修改用户为非预警状态
|
|
|
if(patient.getDisease() != null){
|
|
|
if( 1 == patient.getDisease()){
|
|
|
if(StringUtils.isNotBlank(patientdisease)){
|
|
|
if("1".equals(patientdisease)){
|
|
|
if(0 == bloodPressureBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
patient.setStandardStatus(0);
|
|
|
}
|
|
|
}else if(2 == patient.getDisease()){
|
|
|
}else if("2".equals(patientdisease)){
|
|
|
if(0 == bloodSuggurBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
patient.setStandardStatus(0);
|
|
|
}
|
|
|
}else if( 3 == patient.getDisease()){
|
|
|
}else if( "1,2".equals(patientdisease) || "2,1".equals(patientdisease)){
|
|
|
if( 0 == bloodSuggurBbnormalCount && 0 == bloodPressureBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
patient.setStandardStatus(0);
|
|
|
}
|