|
@ -930,7 +930,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
* @param deviceSn 设备sn码
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getPatientDeviceDetail(String patient,String deviceSn,String day,String doctor,String orderId) throws Exception {
|
|
|
public JSONObject getPatientDeviceDetail(String patient,String deviceSn,String day,String doctor,String orderId,String videoType) throws Exception {
|
|
|
JSONObject result = new JSONObject();
|
|
|
BasePatientDO patientDO = patientDao.findById(patient);
|
|
|
if (null==patientDO){
|
|
@ -943,10 +943,6 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
result.put(ResponseContant.resultMsg,"未查询到该设备");
|
|
|
}else {
|
|
|
DevicePatientDevice device = devices.get(0);
|
|
|
// if (!patient.equals(device.getUser())){
|
|
|
// result.put(ResponseContant.resultFlag,ResponseContant.fail);
|
|
|
// result.put(ResponseContant.resultMsg,"居民未绑定该设备");
|
|
|
// }else {
|
|
|
String sql = "select dd.photo,GROUP_CONCAT(DISTINCT p.name) as patientName,pd.device_sn,dd.brands,dd.category_code,dd.model,pd.device_name,date_format(pd.czrq,'%Y-%m-%d %H:%i:%S' ) deviceTime,wd.manufacturer,p.mobile,p.address,p.idcard,wd.device_type " +
|
|
|
"from dm_device dd INNER JOIN wlyy_patient_device pd on dd.category_code = pd.category_code INNER JOIN base_patient p on p.id = pd.user " +
|
|
|
" INNER JOIN wlyy_devices wd on dd.model = wd.device_model and pd.device_sn = wd.device_code " +
|
|
@ -1077,7 +1073,12 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
content +="SOS紧急呼叫器";
|
|
|
break;
|
|
|
case "12"://监控 视频地址
|
|
|
com.alibaba.fastjson.JSONObject tmp = ysDeviceService.getDeviceLiveAddress(patient, deviceSn, 1, null);
|
|
|
com.alibaba.fastjson.JSONObject tmp = null;
|
|
|
if("ys".equals(videoType)){
|
|
|
tmp = ysDeviceService.getDeviceLiveAddress2(deviceSn,1);
|
|
|
}else {
|
|
|
tmp = ysDeviceService.getDeviceLiveAddress(patient, deviceSn, 1, null);
|
|
|
}
|
|
|
devInfoObj.put("monitorInfoStatus", tmp.getIntValue(ResponseContant.resultFlag));
|
|
|
if (tmp.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
|
|
|
devInfoObj.put("monitorInfo", tmp.getString(ResponseContant.resultMsg));
|