From 9526971c403417c1c007804f24884c443b9e6cd7 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 04 九月 2024 00:34:40 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java index d7502dd..5bd4ab6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java @@ -4,6 +4,8 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.smartor.domain.PatMedReq; +import com.smartor.domain.PatMedRes; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; @@ -43,12 +45,28 @@ * 鏌ヨ鎮h�呴棬璇婅褰曞垪琛� */ @PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") - @GetMapping("/list") + @PostMapping("/selectPatMedOuthospList") @ApiOperation("鏌ヨ鎮h�呴棬璇婅褰曞垪琛�") - public TableDataInfo list(PatMedOuthosp patMedOuthosp) { + public TableDataInfo selectPatMedOuthosplist(@RequestBody PatMedOuthosp patMedOuthosp) { startPage(); List<PatMedOuthosp> list = patMedOuthospService.selectPatMedOuthospList(patMedOuthosp); return getDataTable(list); + } + + /** + * 鏌ヨ鎮h�呴棬璇婅褰曞垪琛� + */ + @PostMapping("/selectPatMedOuthospCount") + @ApiOperation("鏌ヨ闂ㄨ瘖鐪嬬梾浜烘鍜屼汉鏁�") + public AjaxResult selectPatMedOuthospCount(@RequestBody PatMedReq patMedReq) { + PatMedRes patMedRes = patMedOuthospService.selectPatMedOuthospCount(patMedReq); + return success(patMedRes); + } + + @PostMapping("/getDeptCodeByPatId") + @ApiOperation("鏌ヨ閮ㄩ棬缂栫爜閫氳繃userId") + public AjaxResult getDeptCodeByPatId(@RequestBody PatMedOuthosp patMedOuthosp) { + return success(patMedOuthospService.getDeptCodeByPatId(patMedOuthosp)); } /** @@ -70,7 +88,7 @@ @ApiOperation("鑾峰彇鎮h�呴棬璇婅褰曡缁嗕俊鎭�") @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class) @PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") - @GetMapping(value = "/{id}") + @GetMapping(value = "getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(patMedOuthospService.selectPatMedOuthospById(id)); } @@ -81,7 +99,7 @@ @ApiOperation("鏂板鎮h�呴棬璇婅褰�") @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.INSERT) - @PostMapping + @PostMapping("/add") public AjaxResult add(@RequestBody PatMedOuthosp patMedOuthosp) { return toAjax(patMedOuthospService.insertPatMedOuthosp(patMedOuthosp)); } @@ -92,7 +110,7 @@ @ApiOperation("淇敼鎮h�呴棬璇婅褰�") @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.UPDATE) - @PutMapping + @PostMapping("/edit") public AjaxResult edit(@RequestBody PatMedOuthosp patMedOuthosp) { return toAjax(patMedOuthospService.updatePatMedOuthosp(patMedOuthosp)); } @@ -104,7 +122,7 @@ @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class) @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") + @GetMapping("/remove/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(patMedOuthospService.deletePatMedOuthospByIds(ids)); } -- Gitblit v1.9.3