From 7c77e020b81e42fb65aa966742ff7c93e73668e1 Mon Sep 17 00:00:00 2001
From: cuikaidong <ckd2942379034@163.com>
Date: 星期一, 26 五月 2025 17:57:55 +0800
Subject: [PATCH] 设备调拨功能增加

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSparePartInventoryController.java |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSparePartInventoryController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSparePartInventoryController.java
index 690da16..9d2d404 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSparePartInventoryController.java
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamSparePartInventoryController.java
@@ -1,6 +1,7 @@
 package org.jeecg.modules.eam.controller;
 
 import java.util.Arrays;
+import java.util.List;
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -46,7 +47,6 @@
      * @param req
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-鍒嗛〉鍒楄〃鏌ヨ")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-鍒嗛〉鍒楄〃鏌ヨ", notes = "澶囦欢搴撳瓨淇℃伅-鍒嗛〉鍒楄〃鏌ヨ")
     @GetMapping(value = "/list")
     public Result<?> queryPageList(EamSparePartInventory eamSparePartInventory,
@@ -65,11 +65,13 @@
      * @param eamSparePartInventory
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-娣诲姞")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-娣诲姞", notes = "澶囦欢搴撳瓨淇℃伅-娣诲姞")
     @PostMapping(value = "/add")
     public Result<?> add(@RequestBody EamSparePartInventory eamSparePartInventory) {
-        eamSparePartInventoryService.save(eamSparePartInventory);
+        List<EamSparePartInventory> eamSparePartInventories = eamSparePartInventory.getEamSparePartInventories();
+        for (EamSparePartInventory sparePartInventory : eamSparePartInventories) {
+            eamSparePartInventoryService.save(sparePartInventory);
+        }
         return Result.OK("娣诲姞鎴愬姛锛�");
     }
 
@@ -79,7 +81,6 @@
      * @param eamSparePartInventory
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-缂栬緫")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-缂栬緫", notes = "澶囦欢搴撳瓨淇℃伅-缂栬緫")
     @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
     public Result<?> edit(@RequestBody EamSparePartInventory eamSparePartInventory) {
@@ -93,7 +94,6 @@
      * @param id
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鍒犻櫎")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鍒犻櫎", notes = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鍒犻櫎")
     @DeleteMapping(value = "/delete")
     public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
@@ -107,7 +107,6 @@
      * @param ids
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-鎵归噺鍒犻櫎")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-鎵归噺鍒犻櫎", notes = "澶囦欢搴撳瓨淇℃伅-鎵归噺鍒犻櫎")
     @DeleteMapping(value = "/deleteBatch")
     public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
@@ -121,7 +120,6 @@
      * @param id
      * @return
      */
-    @AutoLog(value = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鏌ヨ")
     @ApiOperation(value = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鏌ヨ", notes = "澶囦欢搴撳瓨淇℃伅-閫氳繃id鏌ヨ")
     @GetMapping(value = "/queryById")
     public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {

--
Gitblit v1.9.3