From 6e9e02396e4c660a209e326fa015be6b71a568e1 Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 12 五月 2025 19:07:09 +0800
Subject: [PATCH] 增加更新排产区域数据接口
---
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