|
|
|
@ -1472,26 +1472,14 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
stockArticleEntity.setWarehouseEntryTime(new Date(firstEntryTime)); |
|
|
|
|
stockArticleEntity.setWarehouseEntryTimeEnd(new Date(lastEntryTime)); |
|
|
|
|
|
|
|
|
|
if (incomingNum == 0) { |
|
|
|
|
if(incomingNum == 0){ |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("10"); |
|
|
|
|
stockArticleEntity.setCompleteSet(1); |
|
|
|
|
stockArticleEntity.setOrderStatus("0"); |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
|
stockArticleEntity.setGroundingStatus("10"); |
|
|
|
|
} else if (0 < incomingNum && incomingNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("20"); |
|
|
|
|
stockArticleEntity.setCompleteSet(1); |
|
|
|
|
if (signNum == 0) { |
|
|
|
|
if (handleNum == 0) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} else if (0 < handleNum && handleNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
} |
|
|
|
|
stockArticleEntity.setOrderStatus("10"); |
|
|
|
|
|
|
|
|
|
if (reservationNum == 0) { |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
@ -1504,26 +1492,22 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setGroundingStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("30"); |
|
|
|
|
stockArticleEntity.setCompleteSet(2); |
|
|
|
|
if (signNum == 0) { |
|
|
|
|
if (handleNum == 0) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} else if (0 < handleNum && handleNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if (signNum.equals(totalNumber)) { |
|
|
|
|
stockArticleEntity.setOrderStatus("80"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
|
|
|
|
|
if(signNum == 0){ |
|
|
|
|
if(outNum == 0){ |
|
|
|
|
stockArticleEntity.setOrderStatus("10"); |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setOrderStatus("30"); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setOrderReceiveStatus("30"); |
|
|
|
|
stockArticleEntity.setCompleteSet(2); |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
|
|
|
|
|
if (reservationNum == 0) { |
|
|
|
|
if (reservationNum.equals(0)) { |
|
|
|
|
stockArticleEntity.setReservationStatus("10"); |
|
|
|
|
} else if (reservationNum > 0 && reservationNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setReservationStatus("20"); |
|
|
|
@ -1531,13 +1515,32 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
stockArticleEntity.setReservationStatus("30"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (groundingNum == 0) { |
|
|
|
|
if (groundingNum.equals(0)) { |
|
|
|
|
stockArticleEntity.setGroundingStatus("10"); |
|
|
|
|
} else if (groundingNum > 0 && groundingNum < totalNumber) { |
|
|
|
|
stockArticleEntity.setGroundingStatus("20"); |
|
|
|
|
} else { |
|
|
|
|
stockArticleEntity.setGroundingStatus("30"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(signNum.equals(0)){ |
|
|
|
|
if(outNum.equals(0)){ |
|
|
|
|
stockArticleEntity.setOrderStatus("20"); |
|
|
|
|
}else{ |
|
|
|
|
if(outNum.equals(totalNumber)){ |
|
|
|
|
stockArticleEntity.setOrderStatus("40"); |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setOrderStatus("30"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
if(signNum.equals(totalNumber)){ |
|
|
|
|
stockArticleEntity.setOrderStatus("80"); |
|
|
|
|
}else{ |
|
|
|
|
stockArticleEntity.setOrderStatus("70"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stockArticleEntity.setIncomingNum(incomingNum); |
|
|
|
|