From fb5aa087eaf6a68cf7ea8114beb270551016e7dd Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 29 七月 2025 11:27:45 +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