|
|
|
@ -1431,6 +1431,8 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DistributionStockArticleEntity updateEntity = new DistributionStockArticleEntity(); |
|
|
|
|
updateEntity.setId(stockArticleEntity.getId()); |
|
|
|
|
String isZero = stockArticleEntity.getIsZero(); |
|
|
|
|
if ("1".equals(isZero)) { |
|
|
|
|
log.warn("##############updateOrderInfoByDistributionStockArticleEntity: 零担不更新 orderCode={} warehouseId={}", stockArticleEntity.getOrderCode(), stockArticleEntity.getWarehouseId()); |
|
|
|
@ -1516,83 +1518,82 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stockArticleEntity.setWaybillNumber(orderWaybillNo); |
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date(firstEntryTime)); |
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date(lastEntryTime)); |
|
|
|
|
updateEntity.setWaybillNumber(orderWaybillNo); |
|
|
|
|
updateEntity.setWarehouseEntryTime(new Date(firstEntryTime)); |
|
|
|
|
updateEntity.setWarehouseEntryTimeEnd(new Date(lastEntryTime)); |
|
|
|
|
|
|
|
|
|
if (incomingNum == 0) { |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("10"); |
|
|
|
|
stockArticleEntity.setCompleteSet(1); |
|
|
|
|
stockArticleEntity.setOrderStatus("0"); |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
|
stockArticleEntity.setGroundingStatus("10"); |
|
|
|
|
updateEntity.setOrderReceiveStatus("10"); |
|
|
|
|
updateEntity.setCompleteSet(1); |
|
|
|
|
updateEntity.setOrderStatus("0"); |
|
|
|
|
updateEntity.setReservationStatus("10"); |
|
|
|
|
updateEntity.setGroundingStatus("10"); |
|
|
|
|
} else if (0 < incomingNum && incomingNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("20"); |
|
|
|
|
stockArticleEntity.setCompleteSet(1); |
|
|
|
|
updateEntity.setOrderReceiveStatus("20"); |
|
|
|
|
updateEntity.setCompleteSet(1); |
|
|
|
|
if (signNum == 0) { |
|
|
|
|
if (handleNum == 0) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} else if (0 < handleNum && handleNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
updateEntity.setOrderStatus("70"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (reservationNum == 0) { |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
|
updateEntity.setReservationStatus("10"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setReservationStatus("20"); |
|
|
|
|
updateEntity.setReservationStatus("20"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (groundingNum == 0) { |
|
|
|
|
stockArticleEntity.setGroundingStatus("10"); |
|
|
|
|
updateEntity.setGroundingStatus("10"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setGroundingStatus("20"); |
|
|
|
|
updateEntity.setGroundingStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("30"); |
|
|
|
|
stockArticleEntity.setCompleteSet(2); |
|
|
|
|
updateEntity.setOrderReceiveStatus("30"); |
|
|
|
|
updateEntity.setCompleteSet(2); |
|
|
|
|
if (signNum == 0) { |
|
|
|
|
if (handleNum == 0) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} else if (0 < handleNum && handleNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
updateEntity.setOrderStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (signNum.equals(totalNumber)) { |
|
|
|
|
stockArticleEntity.setOrderStatus("80"); |
|
|
|
|
updateEntity.setOrderStatus("80"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
updateEntity.setOrderStatus("70"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (reservationNum == 0) { |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
|
updateEntity.setReservationStatus("10"); |
|
|
|
|
} else if (reservationNum > 0 && reservationNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setReservationStatus("20"); |
|
|
|
|
updateEntity.setReservationStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setReservationStatus("30"); |
|
|
|
|
updateEntity.setReservationStatus("30"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (groundingNum == 0) { |
|
|
|
|
stockArticleEntity.setGroundingStatus("10"); |
|
|
|
|
updateEntity.setGroundingStatus("10"); |
|
|
|
|
} else if (groundingNum > 0 && groundingNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setGroundingStatus("20"); |
|
|
|
|
updateEntity.setGroundingStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setGroundingStatus("30"); |
|
|
|
|
updateEntity.setGroundingStatus("30"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stockArticleEntity.setIncomingNum(incomingNum); |
|
|
|
|
stockArticleEntity.setHandQuantity(handleNum); |
|
|
|
|
updateById(stockArticleEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateEntity.setSigninQuantity(signNum); |
|
|
|
|
updateEntity.setIncomingNum(incomingNum); |
|
|
|
|
updateEntity.setHandQuantity(handleNum); |
|
|
|
|
updateById(updateEntity); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -2654,6 +2655,11 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
return baseMapper.findStockNumByWaybillNo(waybillNo,departureWarehouseId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Integer findSignNumByWaybillNo(String waybillNo, Long destinationWarehouseId) { |
|
|
|
|
return baseMapper.findSignNumByWaybillNo(waybillNo,destinationWarehouseId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param page |
|
|
|
|
* @param distributionSignforStockArticle |
|
|
|
|