|
@ -212,4 +212,24 @@ public class DoctorLifeCareEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping("wisdomCare")
|
|
|
@ApiOperation(value = "医生端-智慧照护")
|
|
|
public Envelop wisdomCare(@ApiParam(value = "医生code", name = "doctor")
|
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
|
@ApiParam(value = "医生id", name = "orgCode")
|
|
|
@RequestParam(value = "orgCode", required = true) String orgCode){
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("doctorId",permissionService.getUID());
|
|
|
if (permissionService.noPermission(1, jsonObject)) {
|
|
|
return ObjEnvelop.getError("该操作没有权限",-1);
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
return ObjEnvelop.getSuccess("获取成功",lifeCareOrderService.wisdomCare(doctor, orgCode),200) ;
|
|
|
} catch (Exception e) {
|
|
|
return failedObjEnvelopException2(e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|