|
|
|
@ -150,7 +150,7 @@ public class DsOrderTool {
|
|
|
|
|
manualRelateSkuInfo = skuInfo;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (skuInfo.getSourceSkuId() == sourceItemId && StringUtils.isEmpty(manualRelateSourceSkuId)) {
|
|
|
|
|
if (sourceItemId != null && skuInfo.getSourceSkuId() == sourceItemId.longValue() && StringUtils.isEmpty(manualRelateSourceSkuId)) {
|
|
|
|
|
matchSkuInfo = skuInfo;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
@ -170,8 +170,8 @@ public class DsOrderTool {
|
|
|
|
|
int purchaseQuantity = platformItemTotal;
|
|
|
|
|
|
|
|
|
|
GetPurchaseOrderItemsAndSourceItemsResponseDTO.SourceItemSkuRelation manualSourceSkuInfo = platformSkuIdAndSourceSkuInfoMap.get(platformSkuId);
|
|
|
|
|
boolean isSourceItemNoSkuFlag = (matchSourceSkuInfo.getSourceItemId() == matchSourceSkuInfo.getSourceSkuId());
|
|
|
|
|
if (manualSourceSkuInfo != null && ((manualSourceSkuInfo.getSourceSkuId() == matchSourceSkuInfo.getSourceSkuId()) || (isSourceItemNoSkuFlag && (matchSourceSkuInfo.getSourceItemId() == manualSourceSkuInfo.getSourceItemId())))) {
|
|
|
|
|
boolean isSourceItemNoSkuFlag = (matchSourceSkuInfo.getSourceItemId().equals(matchSourceSkuInfo.getSourceSkuId()));
|
|
|
|
|
if (manualSourceSkuInfo != null && ((manualSourceSkuInfo.getSourceSkuId().equals(matchSourceSkuInfo.getSourceSkuId())) || (isSourceItemNoSkuFlag && (matchSourceSkuInfo.getSourceItemId().equals(manualSourceSkuInfo.getSourceItemId()))))) {
|
|
|
|
|
purchaseQuantity = (manualSourceSkuInfo.getSourceNum() != null && manualSourceSkuInfo.getSourceNum() != 0) ? (platformItemTotal * manualSourceSkuInfo.getSourceNum()) : platformItemTotal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|