From a7d03c3ea44f7d4b781c56b28550eb7f6e9d90c1 Mon Sep 17 00:00:00 2001 From: huangjiayang <5265313@qq.com> Date: 星期三, 23 四月 2025 15:10:38 +0800 Subject: [PATCH] 【ADD】增加标准工序相关功能代码 --- aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsPlantController.java | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsPlantController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsPlantController.java index 89d3526..e3c2453 100644 --- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsPlantController.java +++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsPlantController.java @@ -31,7 +31,7 @@ /** * 鏌ヨ宸ュ巶绠$悊鍒楄〃 */ - @RequiresPermissions("aps_plant:list") + @RequiresPermissions("plant:list") @GetMapping("/list") public TableDataInfo list(ApsPlant apsPlant) { @@ -43,7 +43,7 @@ /** * 瀵煎嚭宸ュ巶绠$悊鍒楄〃 */ - @RequiresPermissions("aps_plant:export") + @RequiresPermissions("plant:export") @Log(title = "宸ュ巶绠$悊", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, ApsPlant apsPlant) @@ -56,9 +56,9 @@ /** * 鑾峰彇宸ュ巶绠$悊璇︾粏淇℃伅 */ - @RequiresPermissions("aps_plant:query") + @RequiresPermissions("plant:query") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) + public AjaxResult getInfo(@PathVariable("id") String id) { return success(apsPlantService.selectApsPlantById(id)); } @@ -66,7 +66,7 @@ /** * 鏂板宸ュ巶绠$悊 */ - @RequiresPermissions("aps_plant:add") + @RequiresPermissions("plant:add") @Log(title = "宸ュ巶绠$悊", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody ApsPlant apsPlant) @@ -77,7 +77,7 @@ /** * 淇敼宸ュ巶绠$悊 */ - @RequiresPermissions("aps_plant:edit") + @RequiresPermissions("plant:edit") @Log(title = "宸ュ巶绠$悊", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody ApsPlant apsPlant) @@ -88,11 +88,22 @@ /** * 鍒犻櫎宸ュ巶绠$悊 */ - @RequiresPermissions("aps_plant:remove") + @RequiresPermissions("plant:remove") @Log(title = "宸ュ巶绠$悊", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) + public AjaxResult remove(@PathVariable String[] ids) { return toAjax(apsPlantService.deleteApsPlantByIds(ids)); } + + /** + * 鏌ヨ宸ュ巶绠$悊鍒楄〃 + */ +// @RequiresPermissions("plant:list") + @GetMapping("/listAll") + public AjaxResult listAll(ApsPlant apsPlant) + { + List<ApsPlant> list = apsPlantService.selectApsPlantList(apsPlant); + return AjaxResult.success(list); + } } -- Gitblit v1.9.3