LAPTOP-KB9HII50\70708 2 سال پیش
والد
کامیت
fc828f0d8c
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/device/PatientDeviceService.java

+ 14 - 0
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/device/PatientDeviceService.java

@ -1151,6 +1151,9 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
                    break;
                case "20": //电表 todo 日常用电情况
                    break;
                case "21": //天然气 todo 天然气情况
                    naturalGasRecord(patientDO.getIdcard(),devInfoObj);
                    break;
            }
//        }
                result.put(ResponseContant.resultFlag,ResponseContant.success);
@ -1159,6 +1162,17 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
        return result;
    }
    /**
     * 天然气记录
     * @param idcard
     * @param devInfoObj
     */
    public void naturalGasRecord(String idcard,com.alibaba.fastjson.JSONObject devInfoObj){
        String sql = "SELECT syndyqzl,syndfy,lszyql from hz.gsq_hzrqjmyhglxtrqgrxx WHERE yhsfzh =? ORDER BY tongid desc LIMIT 1 " ;
        List<Map<String,Object>> mapList = jdbcTemplate.queryForList(sql,new Object[]{idcard});
        devInfoObj.put("naturalGasRecord",mapList);
    }
    /**
     * 获取睡眠带 睡眠报告
     * @param patient