Commit 84038b12b66ec818bee6d330399e17d2f2047401
1 parent
eaeae1a4d9
Exists in
master
and in
6 other branches
小程序配置项修改
Showing 1 changed file with 14 additions and 5 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CheckItemManageController.java
View file @
84038b1
| ... | ... | @@ -7,7 +7,6 @@ |
| 7 | 7 | import com.lyms.platform.common.result.BaseResponse; |
| 8 | 8 | import com.lyms.platform.common.utils.ResultUtils; |
| 9 | 9 | import com.lyms.platform.common.utils.StringUtils; |
| 10 | -import com.lyms.platform.operate.web.result.FrontEndResult; | |
| 11 | 10 | import com.lyms.platform.permission.model.CheckItemManage; |
| 12 | 11 | import com.lyms.platform.permission.service.CheckItemManageService; |
| 13 | 12 | import com.lyms.platform.permission.service.CheckItemService; |
| 14 | 13 | |
| 15 | 14 | |
| ... | ... | @@ -38,12 +37,10 @@ |
| 38 | 37 | /** |
| 39 | 38 | * 查询展示项 |
| 40 | 39 | */ |
| 41 | - @RequestMapping(value = "/getCheckItemManageList", method = RequestMethod.POST) | |
| 40 | + @RequestMapping(value = "/getCheckItemManageList", method = RequestMethod.GET) | |
| 42 | 41 | @ResponseBody |
| 43 | 42 | public BaseResponse getCheckItemManageList(@RequestParam(value = "affiliateId") String affiliateId) { |
| 44 | - FrontEndResult frontEndResult = new FrontEndResult(); | |
| 45 | 43 | if (StringUtils.isNotEmpty(affiliateId)) { |
| 46 | - | |
| 47 | 44 | List<CheckItemManage> checkItemManagesList = checkItemManageService.getCheckItemManage(affiliateId); |
| 48 | 45 | for (CheckItemManage checkItemManage : checkItemManagesList) { |
| 49 | 46 | List list = new ArrayList(); |
| ... | ... | @@ -59,7 +56,6 @@ |
| 59 | 56 | } |
| 60 | 57 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(checkItemManagesList); |
| 61 | 58 | } else { |
| 62 | - | |
| 63 | 59 | List<CheckItemManage> checkItemManageList = checkItemManageService.getCheckItemManageList(); |
| 64 | 60 | for (CheckItemManage checkItemManage : checkItemManageList) { |
| 65 | 61 | String ItemInfoId = checkItemManage.getCheckItemInfoId(); |
| ... | ... | @@ -151,6 +147,19 @@ |
| 151 | 147 | ResultUtils.buildSuccessResultAndWrite(response, "删除成功!"); |
| 152 | 148 | return; |
| 153 | 149 | } |
| 150 | + } | |
| 151 | + | |
| 152 | + /** | |
| 153 | + * x小程序获取医院展示项接口 | |
| 154 | + */ | |
| 155 | + | |
| 156 | + @RequestMapping(value = "/xcxGetCheckItem") | |
| 157 | + @ResponseBody | |
| 158 | + public BaseResponse getCheckItem(String parentId) { | |
| 159 | + //1.通过parentId去查询是否有这条数据 | |
| 160 | + | |
| 161 | + List list = new ArrayList(); | |
| 162 | + return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(list); | |
| 154 | 163 | } |
| 155 | 164 | |
| 156 | 165 | } |