LAPTOP-KB9HII50\70708 11 miesięcy temu
rodzic
commit
764032ae5f

+ 2 - 8
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/health/service/DeviceUploadService.java

@ -27,7 +27,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.test.context.jdbc.Sql;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
@ -154,8 +153,8 @@ public class DeviceUploadService {
     */
    public void yujing(String patientCode,BasePatientDO patient){
        try{
            String patientsql = "select group_concat(label) disease from wlyy_sign_patient_label_info where label_type = 3 and status=1 " +
                    "and (label = 1 or label = 2) and patient = '"+patientCode+"' GROUP BY patient";
            String patientsql = "select group_concat(label_code) disease from wlyy_patient_label " +
                    "where patient = '" + patient.getId() + "' and label_type = 2 and (label_code = 1 or label_code = 2)  GROUP BY patient";
            System.out.println("patientsql==>"+ patientsql);
            String patientdisease = jdbcTemplate.queryForObject(patientsql,String.class);
@ -167,8 +166,6 @@ public class DeviceUploadService {
            List<DevicePatientHealthIndex> bloodPressurepatientHealthIndices = patientHealthIndexDao.findByPatientAndTypeByPage(patientCode,2);
            List<DevicePatientHealthIndex> bloodSuggurpatientHealthIndices = patientHealthIndexDao.findByPatientAndTypeByPage(patientCode,1);
            System.out.println("bloodPressurepatientHealthIndices.size()==>"+bloodPressurepatientHealthIndices.size());
            System.out.println("bloodSuggurpatientHealthIndices.size()==>"+bloodSuggurpatientHealthIndices.size());
            if(!bloodPressurepatientHealthIndices.isEmpty()){
                stdbloodPressureBbnormalCount = bloodPressurepatientHealthIndices.size();//血压次数
            }
@ -188,12 +185,9 @@ public class DeviceUploadService {
                    bloodSuggurBbnormalCount++;
                }
            }
            System.out.println("血压异常次数-bloodPressureBbnormalCount数量==>"+bloodPressureBbnormalCount);
            System.out.println("血糖异常次数-stdbloodSuggurBbnormalCount数量==>"+stdbloodSuggurBbnormalCount);
            //连续3次异常,修改用户为预警状态
            if( (bloodPressureBbnormalCount >=3 || bloodSuggurBbnormalCount >=3)){
                System.out.println("连续3次异常,修改用户为预警状态");
                patient.setStandardStatus(1);
//                setTrackPatientByDoctor(patientCode);
            }else{