From 723d38375c45d24737bfef6f33a9686254abf99b Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 17 十月 2024 13:42:27 +0800 Subject: [PATCH] 代码提交 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedOuthospController.java | 44 +++++++++++++++++++++++++++++++------------- 1 files changed, 31 insertions(+), 13 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 671b110..8a75226 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; @@ -34,7 +36,7 @@ */ @RestController @RequestMapping("/smartor/patouthosp") -@Api("鎮h�呴棬璇婅褰�") +@Api(description = "鎮h�呴棬璇婅褰�") public class PatMedOuthospController extends BaseController { @Autowired private IPatMedOuthospService patMedOuthospService; @@ -42,19 +44,35 @@ /** * 鏌ヨ鎮h�呴棬璇婅褰曞垪琛� */ - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") - @GetMapping("/list") + //@PreAuthorize("@ss.hasPermi('smartor:patouthosp: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)); + } + + /** * 瀵煎嚭鎮h�呴棬璇婅褰曞垪琛� */ - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:export')") + //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:export')") @Log(title = "鎮h�呴棬璇婅褰�", businessType = BusinessType.EXPORT) @ApiOperation("鎮h�呴棬璇婅褰�") @PostMapping("/export") @@ -69,8 +87,8 @@ */ @ApiOperation("鑾峰彇鎮h�呴棬璇婅褰曡缁嗕俊鎭�") @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class) - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") - @GetMapping(value = "/{id}") + //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") + @GetMapping(value = "getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(patMedOuthospService.selectPatMedOuthospById(id)); } @@ -79,9 +97,9 @@ * 鏂板鎮h�呴棬璇婅褰� */ @ApiOperation("鏂板鎮h�呴棬璇婅褰�") - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:add')") + //@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)); } @@ -90,9 +108,9 @@ * 淇敼鎮h�呴棬璇婅褰� */ @ApiOperation("淇敼鎮h�呴棬璇婅褰�") - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:edit')") + //@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)); } @@ -101,10 +119,10 @@ * 鍒犻櫎鎮h�呴棬璇婅褰� */ @ApiOperation("鍒犻櫎鎮h�呴棬璇婅褰�") - @PreAuthorize("@ss.hasPermi('smartor:patouthosp:remove')") + //@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