|
@ -625,4 +625,29 @@ public class PatientDeviceController extends BaseController {
|
|
|
return errorResult(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取设备详情数据 --设备可多人绑定查询数据时与patient无关-居民端")
|
|
|
@RequestMapping(value = "getPatientDeviceDataNew",method = RequestMethod.GET)
|
|
|
public String getPatientDeviceDataNew(@ApiParam(name="patient")
|
|
|
@RequestParam(value = "patient")String patient,
|
|
|
@ApiParam(name="deviceSn")
|
|
|
@RequestParam(value = "deviceSn")String deviceSn,
|
|
|
@ApiParam(name="page")
|
|
|
@RequestParam(value = "page")Integer page,
|
|
|
@ApiParam(name="pageSize")
|
|
|
@RequestParam(value = "pageSize")Integer pageSize,
|
|
|
@ApiParam(name = "type", value = "0全部 1日常监护 2预警记录(工单列表)") @RequestParam(value = "type", required = false) String type){
|
|
|
|
|
|
try {
|
|
|
//居民端登录鉴权
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
|
jsonObject.put("patient",permissionService.getUID());
|
|
|
if (permissionService.noPermission(1, jsonObject)) {
|
|
|
return write(-1,"该操作没有权限");
|
|
|
}
|
|
|
return write(200,"获取成功","data",patientDeviceService.getPatientDeviceData(patient,"0",deviceSn,page,pageSize));
|
|
|
}catch (Exception e){
|
|
|
return errorResult(e);
|
|
|
}
|
|
|
}
|
|
|
}
|