|
|
|
@ -84,18 +84,12 @@ public class MesWorkOrderCheckCompleteQtyStepService extends BaseStepService {
|
|
|
|
|
|
|
|
|
|
MesWorkOrderCompleteQtyContext workOrderCompleteQtyContext;
|
|
|
|
|
|
|
|
|
|
//工位维度=true ; 生产线维度=false,需要LOCK
|
|
|
|
|
if (isCellNoCalcQty) {
|
|
|
|
|
//处理工位维度的工单完成数上下文
|
|
|
|
|
workOrderCompleteQtyContext = productionCustomContextStepService.dispatchWorkOrderCompleteQtyCellContext(flag, reqBean, productionPartContextList.get(0), calcCompleteQty);
|
|
|
|
|
//已经在上下文中累加当前工序的工单完成数
|
|
|
|
|
if (flag == CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue()) return;
|
|
|
|
|
//验证工单完成数
|
|
|
|
|
checkWorkOrderCompleteQty(reqBean, resultBean, stepResult, workCenter, workOrderCompleteQtyContext, calcCompleteQty);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//处理工位维度的工单完成数上下文
|
|
|
|
|
workOrderCompleteQtyContext = productionCustomContextStepService.dispatchWorkOrderCompleteQtyCellContext(flag, reqBean, productionPartContextList.get(0), calcCompleteQty);
|
|
|
|
|
//已经在上下文中累加当前工序的工单完成数
|
|
|
|
|
if (flag == CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue()) return;
|
|
|
|
|
//验证工单完成数
|
|
|
|
|
checkWorkOrderCompleteQty(reqBean, resultBean, stepResult, workCenter, workOrderCompleteQtyContext, calcCompleteQty);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|