Commit 8ffd13fb13a8197343d450be05bba1df416c6571
1 parent
8b10950c9f
Exists in
master
and in
6 other branches
产后复查
Showing 1 changed file with 16 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/OrganizationController.java
View file @
8ffd13f
| ... | ... | @@ -239,6 +239,22 @@ |
| 239 | 239 | ResultUtils.buildSuccessResultAndWrite(response); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | + | |
| 243 | + @RequestMapping(value = "/getOrgByAreaId", method = RequestMethod.GET) | |
| 244 | + @ResponseBody | |
| 245 | + @TokenRequired | |
| 246 | + public Map getOrgByAreaId(HttpServletRequest request, | |
| 247 | + @RequestParam(value = "areaId", required = true) String areaId) { | |
| 248 | + OrganizationQuery organizationQuery = new OrganizationQuery(); | |
| 249 | + organizationQuery.setAreaId(areaId); | |
| 250 | + List<Organization> organizations = organizationService.queryOrganization(organizationQuery); | |
| 251 | + Map<String, Object> map = new HashMap<>(); | |
| 252 | + map.put("data", organizations); | |
| 253 | + map.put("errormsg", "成功"); | |
| 254 | + map.put("errorcode", ErrorCodeConstants.SUCCESS); | |
| 255 | + return map; | |
| 256 | + } | |
| 257 | + | |
| 242 | 258 | /** |
| 243 | 259 | * 根据当前登录的权限去获取下属的医院 |
| 244 | 260 | */ |