From 770361cf5d70c7893ffea4f1dacac297628aea1d Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期五, 20 六月 2025 18:03:00 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/zd-after

---
 main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java b/main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
index bcf7e46..af85197 100644
--- a/main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
+++ b/main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
@@ -168,6 +168,7 @@
                 coalValue.setCoalValue(value);
                 coalValue.setFields(key);
                 coalValue.setFieldName(fieldName);
+                coalValue.setType(String.valueOf(1));
                 i = coalValueMapper.insert(coalValue);
             }
         }
@@ -192,7 +193,7 @@
                 officialInventory.setPendingId(pendingInventoryDto.getPId());
                 officialInventory.setInventoryQuantity(quantity);
                 officialInventoryMapper.insert(officialInventory);
-            }else {
+            } else {
                 OfficialInventory officialInventory = officialInventoryMapper.selectById(pendingInventoryDto.getOfficialId());
                 officialInventory.setInventoryQuantity(quantity.add(officialInventory.getInventoryQuantity()));
                 officialInventoryMapper.updateById(officialInventory);
@@ -200,10 +201,4 @@
         }
         return i;
     }
-
-    // 澶勭悊鏄庣粏鍜屽簱瀛樻暟閲�
-    private int handeInventoryQuantity(PendingInventoryDto pendingInventoryDto) {
-        inputInventoryRecordService.insertInputInventoryRecord(pendingInventoryDto, null, pendingInventoryDto.getInventoryQuantity());
-        return inventorySummaryService.updateInventory(pendingInventoryDto, null);
-    };
 }

--
Gitblit v1.9.3