Commit 863f95e38f8af7cefbc6add2ea3a1f397394755c

Authored by jiangjiazhi
1 parent ab72ed984f

增加获取未读报告接口

Showing 1 changed file with 3 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BloodPressureController.java View file @ 863f95e
... ... @@ -120,6 +120,9 @@
120 120 @ResponseBody
121 121 @RequestMapping(value = "/app/unread/{pid}", method = RequestMethod.GET)
122 122 public BaseResponse checkUnReadReport(@PathVariable String pid){
  123 + if (StringUtils.isEmpty(pid) || "null".equals(pid)) {
  124 + return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("pid参数不能为空");
  125 + }
123 126 return bpReportFacade.checkUnReadReport(pid);
124 127 }
125 128