|
|
|
@ -160,12 +160,13 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
proOrder.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
proOrder.setUpdateBy(SecurityContextHolder.getUserName());
|
|
|
|
|
proOrder.setQuantitySplit(splitOrderDTO.getSplitNum());
|
|
|
|
|
proOrder.setQuantity(splitOrderDTO.getSplitNum());
|
|
|
|
|
proOrder.setQuantity(proOrder.getQuantitySplit());
|
|
|
|
|
proOrder.setStatus("o1");
|
|
|
|
|
proOrder.setCarNum(proOrder.getCarNum()+splitOrderDTO.getCarNum());
|
|
|
|
|
if (flag) {
|
|
|
|
|
proOrder.setStatus("o2");
|
|
|
|
|
}
|
|
|
|
|
proOrderMapper.updateOrder(proOrder);
|
|
|
|
|
proOrderMapper.updateWhiteOrder(proOrder);
|
|
|
|
|
|
|
|
|
|
// 设置工单通用属性
|
|
|
|
|
ProOrderWorkorder proOrderWorkorder = setCommonWorkAttribute(proOrder, splitOrderDTO.getProductDate(), splitOrderDTO.getProdLineCode(), splitOrderDTO.getShiftId(), splitOrderDTO.getRouteCode());
|
|
|
|
@ -183,6 +184,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
proOrderWorkorder.setProdType(proOrder.getProdType());
|
|
|
|
|
proOrderWorkorder.setParentOrder("0");
|
|
|
|
|
proOrderWorkorder.setEndFlag(1);
|
|
|
|
|
proOrderWorkorder.setCarNum(splitOrderDTO.getCarNum());
|
|
|
|
|
|
|
|
|
|
// 插入工单
|
|
|
|
|
proOrderWorkorderMapper.insertProOrderWorkorder(proOrderWorkorder);
|
|
|
|
|