From 519879ccc3b1873a4a6a94757d842b7e422c0e2d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 17 三月 2026 11:14:22 +0800
Subject: [PATCH] 原材料下单:修复铜材料下单无法查询问题

---
 inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderServiceImpl.java |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderServiceImpl.java
index ed72ea8..fc47c56 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderServiceImpl.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderServiceImpl.java
@@ -16,6 +16,7 @@
 import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ruoyi.basic.dto.InventoryDetailDTO;
 import com.ruoyi.basic.mapper.IfsInventoryQuantityMapper;
 import com.ruoyi.basic.mapper.StandardProductListMapper;
 import com.ruoyi.basic.mapper.StructureItemParameterMapper;
@@ -801,6 +802,9 @@
         ifsInventoryQuantity.setIsCopper(1);
         ifsInventoryQuantity.setIsQuarter(0);
         ifsInventoryQuantity.setInspectStatus(0);
+        //閾滄潗鏂欎笅鍗曢粯璁ゅ��
+        ifsInventoryQuantity.setOrderType(OrderType.RAW.getValue());
+        ifsInventoryQuantity.setMaterialProp("01Cu");
 
         ifsInventoryQuantity.setQtyArrived(insOrder.getQtyArrived());
         ifsInventoryQuantity.setBuyUnitMeas(insOrder.getBuyUnitMeas());
@@ -810,10 +814,8 @@
 
         ifsInventoryQuantityMapper.insert(ifsInventoryQuantity);
 
-
         insOrder.setIfsInventoryId(ifsInventoryQuantity.getId());
         insOrder.setState(1);
-
 
         upInsOrderOfState(insOrder);
         upInsOrder(insOrder.getId(), null, appointed != null ? appointed.toString() : null, SecurityUtils.getUserId().intValue(), "鍘熸潗鏂�");
@@ -904,6 +906,11 @@
     @Override
     public List<InsOrderPrintingVo> labelOrderPrinting(List<Integer> ids) {
         return insOrderMapper.labelOrderPrinting(ids);
+    }
+
+    @Override
+    public List<InventoryDetailDTO> labelOutsideOrderPrinting(List<Integer> ids) {
+        return insOrderMapper.labelOutsideOrderPrinting(ids);
     }
 
     /**
@@ -1216,8 +1223,7 @@
         // 妫�楠屽悗绉诲簱
         //1301:鍘熸潗鏂欏悎鏍煎簱锛孋P-02-001:鎴愬搧搴�
         if(StringUtils.equals(inventoryQuantity.getOrderType(), OrderType.RAW.getValue())){
-            //濡傛灉璁㈠崟涓哄師鏉愭枡鐨勬媶鍒嗚鍗曪紝鍒欑Щ鍒板璐師鏉愭枡搴撲綅W03
-            toLocation = one.getIsSplitOrder().equals(1)?"W03":"1301";
+            toLocation = "1301";
         }else if(StringUtils.equals(inventoryQuantity.getOrderType(), OrderType.WG.getValue())){
             toLocation = "CP-02-001";
         }else{

--
Gitblit v1.9.3