|
|
|
@ -349,8 +349,7 @@ public class MesBaseBarcodeInfoServiceImpl implements IMesBaseBarcodeInfoService
|
|
|
|
|
|
|
|
|
|
Long saleOrderId = productPlan.getSaleOrderId();
|
|
|
|
|
String saleOrderCode = productPlan.getSaleorderCode();
|
|
|
|
|
Long materialId = null;//在生产计划的materialid是根据saletype保存,如果是外部销售则保存productorder中的materialid,如果是内部生产则保存prpductorder中的producematerialid
|
|
|
|
|
|
|
|
|
|
Long materialId = productPlan.getMaterialId();;//在生产计划的materialid是根据saletype保存,如果是外部销售则保存productorder中的materialid,如果是内部生产则保存prpductorder中的producematerialid
|
|
|
|
|
|
|
|
|
|
//五楼自检工序根据原材料条码生成成品条码
|
|
|
|
|
if (StringUtils.isNotEmpty(mesBaseBarcodeInfo.getSingleFlag()) &&
|
|
|
|
@ -408,9 +407,6 @@ public class MesBaseBarcodeInfoServiceImpl implements IMesBaseBarcodeInfoService
|
|
|
|
|
+ ",原材料条码派工单号:" + rawBarcodeProductPlan.getDispatchCode());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
materialId = rawBarcode.getMaterialId();
|
|
|
|
|
|
|
|
|
|
mesBaseBarcodeInfo.setPalletInfoCode(rawBarcode.getPalletInfoCode());//重新绑定托盘号
|
|
|
|
|
mesBaseBarcodeInfo.setBindStatus(MesConstants.MES_BARCODE_BIND_STATUS_BINDING);
|
|
|
|
|
|
|
|
|
@ -436,7 +432,6 @@ public class MesBaseBarcodeInfoServiceImpl implements IMesBaseBarcodeInfoService
|
|
|
|
|
mesProductPlanDetailMapper.updateMesProductPlanDetail(mesProductPlanDetail);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
materialId = productPlan.getMaterialId();
|
|
|
|
|
|
|
|
|
|
MesProductOrder mesProductOrder = mesProductOrderMapper.selectMesProductOrderByProductOrderId(productPlan.getProductOrderId());
|
|
|
|
|
mesBaseBarcodeInfo.setCompleteFlag(mesProductOrder.getSaleType().equals(MesConstants.MES_PRODUCT_ORDER_SALE)
|
|
|
|
|