Commit d39f42f16d97dd3297fff1bdabd879f9ad76a538

Authored by wangbo
1 parent 7c71906aee

小程序配置项小程端接口

Showing 3 changed files with 5 additions and 6 deletions

platform-biz-service/src/main/java/com/lyms/platform/permission/service/CheckItemManageService.java View file @ d39f42f
1 1 package com.lyms.platform.permission.service;
2 2  
3   -import com.lyms.platform.common.result.BaseResponse;
4 3 import com.lyms.platform.permission.model.CheckItemManage;
5 4 import com.lyms.platform.permission.model.CheckItemManageQuery;
6 5  
... ... @@ -19,6 +18,6 @@
19 18  
20 19 public List<CheckItemManage> queryCheckItemManage(CheckItemManageQuery checkItemManageQuery);
21 20  
22   - public BaseResponse xcxGetCheckItemManage(String parentId);
  21 + public List xcxGetCheckItemManage(String parentId);
23 22 }
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CheckItemManageServiceImpl.java View file @ d39f42f
... ... @@ -65,7 +65,7 @@
65 65 }
66 66  
67 67 @Override
68   - public BaseResponse xcxGetCheckItemManage(String parentId) {
  68 + public List xcxGetCheckItemManage(String parentId) {
69 69 //获取复诊
70 70 List<AntenatalExaminationModel> antenatalExaminationModels = mongoTemplate.find(Query.query(Criteria.where("parentId").is(parentId)), AntenatalExaminationModel.class);
71 71 //1.先查询复诊是否为空
... ... @@ -112,7 +112,7 @@
112 112 }
113 113 }
114 114 }
115   - return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(list2);
  115 + return list2;
116 116  
117 117 } else {
118 118 //获取初诊
... ... @@ -132,7 +132,7 @@
132 132 }
133 133 }
134 134 }
135   - return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(list2);
  135 + return list2;
136 136 }
137 137 }
138 138 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CheckItemManageController.java View file @ d39f42f
... ... @@ -214,7 +214,7 @@
214 214 */
215 215 @RequestMapping(value = "/getAppCheckItem/{parentId}", method = RequestMethod.GET)
216 216 @ResponseBody
217   - public BaseResponse getCheckItem(@PathVariable String parentId) {
  217 + public List getCheckItem(@PathVariable String parentId) {
218 218 return checkItemManageService.xcxGetCheckItemManage(parentId);
219 219 }
220 220