|
|
|
@ -288,7 +288,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
BigDecimal newSapQuantityNum = new BigDecimal(proOrder.getQuantity())
|
|
|
|
|
.subtract(new BigDecimal(proOrder.getQuantitySplit()));
|
|
|
|
|
sapChange.setQuantity(newSapQuantityNum.toString());//母订单新数量
|
|
|
|
|
logger.info("母订单"+proOrder.getOrderCode()+
|
|
|
|
|
logger.info("【成品订单拆分】母订单"+proOrder.getOrderCode()+
|
|
|
|
|
"订单数量变更:修改前"+proOrder.getQuantity()+","+
|
|
|
|
|
",已拆数量"+proOrder.getQuantitySplit()+","+
|
|
|
|
|
"给sap汇报数量"+newSapQuantityNum.toString());
|
|
|
|
@ -302,7 +302,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
workOrder.setBelongWorkOrder(belongWorkOrder);
|
|
|
|
|
workOrder.setProdType("LJ01");
|
|
|
|
|
|
|
|
|
|
// 将工单信息更新至数据库
|
|
|
|
|
// 将工单信息更新至数据库/**pro_order_workorder**/
|
|
|
|
|
proOrderWorkorderMapper.insertProOrderWorkorder(workOrder);
|
|
|
|
|
// 生成批次表信息并更新至数据库
|
|
|
|
|
setBatch(workBatch, splitOrderDTO.getFormFields(), workOrder.getWorkorderId(), conver);
|
|
|
|
@ -940,7 +940,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
// 拆分中
|
|
|
|
|
proOrder.setStatus("o1");
|
|
|
|
|
}
|
|
|
|
|
// 更新订单表
|
|
|
|
|
// 更新订单表/**pro_order**/
|
|
|
|
|
proOrderMapper.updateOrder(proOrder);
|
|
|
|
|
// 生成对应的工单表
|
|
|
|
|
// 生成id
|
|
|
|
|