| | |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @PostMapping("/page") |
| | | @ApiOperation("医疗机构分页列表") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MedicalInstitutionVO>> pageList(@RequestBody DepartmentQuery query) { |
| | | return R.ok(sysDepartmentService.pageMedicalList(query)); |
| | | } |
| | |
| | | * |
| | | * @param dto |
| | | */ |
| | | @PostMapping("/add") |
| | | @ApiOperation("新增医疗机构") |
| | | @PostMapping("/add") |
| | | public R<?> add(@Valid @RequestBody MedicalInstitutionDTO dto) { |
| | | sysDepartmentService.addMedical(dto); |
| | | return R.ok(); |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDisposalList/{id}") |
| | | @ApiOperation("根据父级区域id查询处置单位列表") |
| | | @GetMapping("/getDisposalList/{id}") |
| | | public R<List<DisposalUnitVO>> getDisposalUnitList(@ApiParam(name = "id", value = "父级区域id") @PathVariable("id") Long id) { |
| | | return R.ok(sysDepartmentService.getDisposalUnitListByParentId(id)); |
| | | } |
| | |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @PostMapping("/edit") |
| | | @ApiOperation("编辑医疗机构") |
| | | @PostMapping("/edit") |
| | | public R<?> edit(@Valid @RequestBody MedicalInstitutionDTO dto) { |
| | | sysDepartmentService.editMedical(dto); |
| | | return R.ok(); |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/detail/{id}") |
| | | @ApiOperation("医疗机构详情") |
| | | @GetMapping("/detail/{id}") |
| | | public R<MedicalInstitutionVO> detail(@ApiParam(name = "id", value = "医疗机构id", required = true) @PathVariable("id") Long id) { |
| | | return R.ok(sysDepartmentService.getMedicalDetailById(id)); |
| | | } |
| | |
| | | * |
| | | * @param id |
| | | */ |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation("删除医疗机构") |
| | | @DeleteMapping("/{id}") |
| | | public R<?> delete(@ApiParam(name = "id", value = "医疗机构id", required = true) @PathVariable("id") Long id) { |
| | | sysDepartmentService.deleteMedical(id); |
| | | return R.ok(); |