|
|
|
@ -389,11 +389,11 @@ public class DsMessageServiceImpl implements DsMessageService {
|
|
|
|
|
Map<String, String> skuIdAndPurSkuOrderIdMap = new HashMap<>();
|
|
|
|
|
List<PlatformPurchaseOrderSku> skus = platformPurchaseOrderSkuMapper.getListByPurOrderIds(Collections.singletonList(purchaseOrder.getPurOrderId()));
|
|
|
|
|
for (PlatformPurchaseOrderSku sku: skus) {
|
|
|
|
|
skuIdAndPurSkuOrderIdMap.put(sku.getOuterSkuId(), sku.getPurSkuOrderId());
|
|
|
|
|
skuIdAndPurSkuOrderIdMap.put(String.valueOf(sku.getSkuId()), sku.getPurSkuOrderId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SupplyCenterRefundOperateParam param = new SupplyCenterRefundOperateParam();
|
|
|
|
|
param.setPurOrderId(purchaseOrderDTO.getPlatformOrderId());
|
|
|
|
|
param.setPurOrderId(purchaseOrder.getPurOrderId());
|
|
|
|
|
List<SkuRefundInfosItem> skuRefundInfosItems = new ArrayList<>();
|
|
|
|
|
for (Map.Entry<String, RefundInfoDTO> entry: purchaseOrderDTO.getRefundInfo().entrySet()) {
|
|
|
|
|
Set<String> subItemIds = entry.getValue().getOrderEntryCountMap().keySet();
|
|
|
|
@ -454,9 +454,9 @@ public class DsMessageServiceImpl implements DsMessageService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private int getAftersaleType(RefundInfoDTO refundInfo) {
|
|
|
|
|
if (refundInfo.getOnlyRefund() == 1 && refundInfo.getGoodsReceived() == 1) {
|
|
|
|
|
if (refundInfo.getOnlyRefund() == 1 && refundInfo.getGoodsReceived()) {
|
|
|
|
|
return 1;
|
|
|
|
|
} else if (refundInfo.getOnlyRefund() == 1 && refundInfo.getGoodsReceived() == 0) {
|
|
|
|
|
} else if (refundInfo.getOnlyRefund() == 1) {
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
return 3;
|
|
|
|
|