xiaoyunquan il y a 2 ans
Parent
commit
9a8a0020c6

+ 25 - 0
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/endpoint/device/DoctorDeviceController.java

@ -442,4 +442,29 @@ public class DoctorDeviceController 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 {
			//医生端登录鉴权
			JSONObject jsonObject = new JSONObject();
			jsonObject.put("doctorId",permissionService.getUID());
			if (permissionService.noPermission(1, jsonObject)) {
				return error(-1,"该操作没有权限");
			}
			return write(200,"获取成功","data",patientDeviceService.getPatientDeviceData(patient,type,deviceSn,page,pageSize));
		}catch (Exception e){
			return errorResult(e);
		}
	}
}

+ 25 - 0
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/endpoint/device/PatientDeviceController.java

@ -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);
        }
    }
}