From ee40e4fdd60ce3bf0d418f128ae52815707bc00e Mon Sep 17 00:00:00 2001 From: ruanqi Date: Fri, 6 Dec 2024 11:13:43 +0800 Subject: [PATCH] =?UTF-8?q?0412=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/heai/modules/app/dao/InventoryStockDao.java | 1 + .../production/service/impl/DailyPlanServiceImpl.java | 2 +- src/main/resources/mapper/app/InventoryStock.xml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/heai/modules/app/dao/InventoryStockDao.java b/src/main/java/com/heai/modules/app/dao/InventoryStockDao.java index 376ff68..c3eca0d 100644 --- a/src/main/java/com/heai/modules/app/dao/InventoryStockDao.java +++ b/src/main/java/com/heai/modules/app/dao/InventoryStockDao.java @@ -47,6 +47,7 @@ public interface InventoryStockDao { String GetSysParamenter(@Param("site")String site ,@Param("id") int id); Double getPartReject(@Param("site")String site ,@Param("partNo") String partNo); + Double getPartRejectSYS(@Param("site")String site ,@Param("partNo") String partNo); /** * @Description 通过批号查入库单的订单号 * @Title getPartFromShopOrder diff --git a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java index 55f0ab3..3e38bed 100644 --- a/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java +++ b/src/main/java/com/heai/modules/production/service/impl/DailyPlanServiceImpl.java @@ -730,7 +730,7 @@ public class DailyPlanServiceImpl implements DailyPlanService { throw new RuntimeException("该账号无权操作这个派工单!"); } //函数取物料报废标准 - Double ifChaobiao=inventoryStockDao.getPartReject(inData.getSite(),checkUserSeqNo.get(0).getPartNo()); + Double ifChaobiao=inventoryStockDao.getPartRejectSYS(inData.getSite(),checkUserSeqNo.get(0).getPartNo()); if( (qtyReported-qtyApprove)*100.0/qtyReported>=ifChaobiao ){ AbnormalFeedBackDataIn inData2=new AbnormalFeedBackDataIn(); inData2.setSite(inData.getSite()); diff --git a/src/main/resources/mapper/app/InventoryStock.xml b/src/main/resources/mapper/app/InventoryStock.xml index afa0189..53cb588 100644 --- a/src/main/resources/mapper/app/InventoryStock.xml +++ b/src/main/resources/mapper/app/InventoryStock.xml @@ -74,6 +74,11 @@ select [dbo].[Get_PartReject_R] (#{site},#{partNo}) + + +