From 78161e3b71efb46b547fda45571ee3367035f849 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 11 Jun 2024 11:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/service/Impl/ProductionStockServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java b/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java index 740d484..e01076f 100644 --- a/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java +++ b/src/main/java/com/spring/modules/material/service/Impl/ProductionStockServiceImpl.java @@ -172,8 +172,8 @@ public class ProductionStockServiceImpl implements ProductionStockService { if(getFinalRoll==null){ throw new RuntimeException("卷号不存在!"); } - if(getFinalRoll.getStatusCode()!=0){ - throw new RuntimeException("卷状态不为已创建无法入库!"); + if(getFinalRoll.getStatusCode()!=1){ + throw new RuntimeException("卷状态不为checked无法入库!"); } ShopOrderVo shopOrder=new ShopOrderVo(); shopOrder.setSite(inData.getSite()); @@ -268,7 +268,7 @@ public class ProductionStockServiceImpl implements ProductionStockService { transDetailSubData.setRollQty(subData.get(j).getRollQty()); transDetailSubData.setOrderRef1(getHeader.getOrderRef1()); inList.add(transDetailSubData); - productionStockMapper.updateFinalRollStatus(transDetailSubData.getSite(),transDetailSubData.getRollNo(),1,"Stocked"); + productionStockMapper.updateFinalRollStatus(transDetailSubData.getSite(),transDetailSubData.getRollNo(),2,"Stocked"); } } }