diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java index eba2f13..30cc13d 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/WmsOutPlanServiceImpl.java @@ -154,7 +154,7 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService { // 更新出库计划明细 this.wmsOutPlanMapper.updateWmsOutPlanDetailRealQuantityAndDetailStateByWmsOutPlanDetailId( - baseKnifeList.size(), + wmsOutPlanDetail.getPlannedQuantity(), "1", wmsOutPlanDetail.getWmsOutPlanDetailId() ); @@ -191,7 +191,7 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService { wmsOutTask.setWmsBusinessTypeId(wmsOutPlan.getWmsBusinessTypeId()); wmsOutTask.setTaskCode(new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date())); wmsOutTask.setTaskNumber(wmsOutPlanDetail.getPlannedQuantity()); - wmsOutTask.setOutNumber(baseKnifeList.size()); + wmsOutTask.setOutNumber(wmsOutPlanDetail.getPlannedQuantity()); wmsOutTask.setWmStorageAreaId(wmsOutPlanDetail.getWmStorageAreaId()); wmsOutTask.setBatchNum(wmsOutPlanDetail.getDetailBatchNum()); wmsOutTask.setMdItemId(wmsOutPlanDetail.getMdItemId());