|
|
@ -385,7 +385,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (Map.Entry<String, DsPayRetDTO> entry: sourceOrderIdAndPayRetMap.entrySet()) {
|
|
|
|
for (Map.Entry<String, DsPayRetDTO> entry: sourceOrderIdAndPayRetMap.entrySet()) {
|
|
|
|
if (!entry.getValue().getReason().isEmpty()) {
|
|
|
|
if (entry.getValue().getReason() != null && !entry.getValue().getReason().isEmpty()) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sourceOrderIdAndPayFailReasonMap.put(entry.getKey(), entry.getValue().getReason());
|
|
|
|
sourceOrderIdAndPayFailReasonMap.put(entry.getKey(), entry.getValue().getReason());
|
|
|
@ -448,11 +448,19 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
|
|
|
|
OpOrder opOrder = orderIdAndOrderMap.get(platformOrder.getPlatformOrderId());
|
|
|
|
OpOrder opOrder = orderIdAndOrderMap.get(platformOrder.getPlatformOrderId());
|
|
|
|
if (purchaseSetting.getIsAutoFillRemark() >= 1) {
|
|
|
|
if (purchaseSetting.getIsAutoFillRemark() >= 1) {
|
|
|
|
String autoFillRemarkTpl = buildRemarkTplHtml(purchaseSetting.getAutoFillRemarkTpl());
|
|
|
|
String autoFillRemarkTpl = buildRemarkTplHtml(purchaseSetting.getAutoFillRemarkTpl());
|
|
|
|
platformOrder.setSourceOrderBuyerRemark(buildSourceOrderRemarkAndMemo(shop, autoFillRemarkTpl, opOrder));
|
|
|
|
String sourceOrderBuyerRemark = buildSourceOrderRemarkAndMemo(shop, autoFillRemarkTpl, opOrder);
|
|
|
|
|
|
|
|
if (sourceOrderBuyerRemark.length() > 500) {
|
|
|
|
|
|
|
|
sourceOrderBuyerRemark = sourceOrderBuyerRemark.substring(0, 500);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
platformOrder.setSourceOrderBuyerRemark(sourceOrderBuyerRemark);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (purchaseSetting.getIsAutoFillOrderMemo() >= 1) {
|
|
|
|
if (purchaseSetting.getIsAutoFillOrderMemo() >= 1) {
|
|
|
|
String autoFillOrderMemoTpl = buildRemarkTplHtml(purchaseSetting.getAutoFillOrderMemoTpl());
|
|
|
|
String autoFillOrderMemoTpl = buildRemarkTplHtml(purchaseSetting.getAutoFillOrderMemoTpl());
|
|
|
|
platformOrder.setSourceOrderSellerMemo(buildSourceOrderRemarkAndMemo(shop, autoFillOrderMemoTpl, opOrder));
|
|
|
|
String sourceOrderSellerMemo = buildSourceOrderRemarkAndMemo(shop, autoFillOrderMemoTpl, opOrder);
|
|
|
|
|
|
|
|
if (sourceOrderSellerMemo.length() > 500) {
|
|
|
|
|
|
|
|
sourceOrderSellerMemo = sourceOrderSellerMemo.substring(0, 500);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
platformOrder.setSourceOrderSellerMemo(sourceOrderSellerMemo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -543,6 +551,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
|
|
|
|
return newSellerWords;
|
|
|
|
return newSellerWords;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.info("shopRemarkFlag: " + shopRemarkFlag);
|
|
|
|
log.info("shopRemarkFlag: " + shopRemarkFlag);
|
|
|
|
|
|
|
|
if (newSellerWords.length() > 500) {
|
|
|
|
|
|
|
|
newSellerWords = newSellerWords.substring(0, 500);
|
|
|
|
|
|
|
|
}
|
|
|
|
opOrderService.updateOpOrderSellerRemarkToDb(shopBO, opOrder.getOrderId(), newSellerWords, shopRemarkFlag, false, OrderPrintConst.UPDATE_SELLER_WORD_SOURCE_SINGLE, purchaseOrderRemark);
|
|
|
|
opOrderService.updateOpOrderSellerRemarkToDb(shopBO, opOrder.getOrderId(), newSellerWords, shopRemarkFlag, false, OrderPrintConst.UPDATE_SELLER_WORD_SOURCE_SINGLE, purchaseOrderRemark);
|
|
|
|
return newSellerWords;
|
|
|
|
return newSellerWords;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -570,6 +581,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
|
|
|
|
return newShopNote;
|
|
|
|
return newShopNote;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
newShopNote = newShopNote.replaceAll(AppConst.appChineseName, "0.0");
|
|
|
|
newShopNote = newShopNote.replaceAll(AppConst.appChineseName, "0.0");
|
|
|
|
|
|
|
|
if (newShopNote.length() > 500) {
|
|
|
|
|
|
|
|
newShopNote = newShopNote.substring(0, 500);
|
|
|
|
|
|
|
|
}
|
|
|
|
opOrderExtService.updateOpOrderShopNote(shopId, orderId, newShopNote);
|
|
|
|
opOrderExtService.updateOpOrderShopNote(shopId, orderId, newShopNote);
|
|
|
|
return newShopNote;
|
|
|
|
return newShopNote;
|
|
|
|
}
|
|
|
|
}
|
|
|
|