Commit 7c3869974cc5988616fc0f25788b7b33ecae66c1

Authored by 吕琪
1 parent ce85802e

fix(tax): 修复税务代理通知服务中的组织机构代码构建逻辑

cashier-mall/src/main/java/com/diligrp/cashier/mall/service/biz/impl/TaxAgentNotifyServiceImpl.java
@@ -290,7 +290,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService { @@ -290,7 +290,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService {
290 private void sendBuyerReceivableMessage(TaxAgentPrepareInfo taxAgentPrepareInfo, String entity, 290 private void sendBuyerReceivableMessage(TaxAgentPrepareInfo taxAgentPrepareInfo, String entity,
291 String pipelineCode, Map<String, Object> infoMap) { 291 String pipelineCode, Map<String, Object> infoMap) {
292 // 费用项 292 // 费用项
293 - String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action; 293 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action + "-" + infoMap.get("orderType");
294 String chargeItemDept; 294 String chargeItemDept;
295 295
296 if (taxAgentPrepareInfo.isCardPay) { 296 if (taxAgentPrepareInfo.isCardPay) {
@@ -311,9 +311,9 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService { @@ -311,9 +311,9 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService {
311 311
312 private void sendSellerReceivableMessage(String sellerCustomerCode, TaxAgentPrepareInfo taxAgentPrepareInfo, String entity, 312 private void sendSellerReceivableMessage(String sellerCustomerCode, TaxAgentPrepareInfo taxAgentPrepareInfo, String entity,
313 String pipelineCode, Map<String, Object> infoMap) { 313 String pipelineCode, Map<String, Object> infoMap) {
314 - String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action; 314 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action + "-" + infoMap.get("orderType");
315 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-S" + "-" + infoMap.get("orderType")); 315 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-S" + "-" + infoMap.get("orderType"));
316 - String chargeItemDept = String.valueOf(taxAgentPrepareInfo.payType) + infoMap.get("orderType"); 316 + String chargeItemDept = taxAgentPrepareInfo.payType + "-" + infoMap.get("orderType") + "-" + infoMap.get("orderType");
317 infoMap.put(SALE_DEPT, chargeItemDept); 317 infoMap.put(SALE_DEPT, chargeItemDept);
318 String quotedQuantity; 318 String quotedQuantity;
319 if (ObjectUtil.equal(taxAgentPrepareInfo.type, TaxMessageType.ORDER_PAY.getCode())) { 319 if (ObjectUtil.equal(taxAgentPrepareInfo.type, TaxMessageType.ORDER_PAY.getCode())) {
@@ -352,7 +352,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService { @@ -352,7 +352,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService {
352 BigDecimal amountYuan = convertToYuan(taxAgentPrepareInfo.amount); 352 BigDecimal amountYuan = convertToYuan(taxAgentPrepareInfo.amount);
353 353
354 ArrayList<ReceiptItem> items = new ArrayList<>(); 354 ArrayList<ReceiptItem> items = new ArrayList<>();
355 - String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action; 355 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action + "-" + map.get("orderType");
356 items.add(ReceiptItem.of(chargeItem, String.valueOf(taxAgentPrepareInfo.payType), 356 items.add(ReceiptItem.of(chargeItem, String.valueOf(taxAgentPrepareInfo.payType),
357 String.valueOf(amountYuan), taxAgentPrepareInfo.cardNo)); 357 String.valueOf(amountYuan), taxAgentPrepareInfo.cardNo));
358 map.put(RECEIPT_ITEM, items); 358 map.put(RECEIPT_ITEM, items);
@@ -369,7 +369,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService { @@ -369,7 +369,7 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService {
369 BigDecimal amountYuan = convertToYuan(taxAgentPrepareInfo.amount); 369 BigDecimal amountYuan = convertToYuan(taxAgentPrepareInfo.amount);
370 370
371 ArrayList<RefundItem> items = new ArrayList<>(); 371 ArrayList<RefundItem> items = new ArrayList<>();
372 - String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action; 372 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action + "-" + map.get("orderType");
373 items.add(RefundItem.of(chargeItem, String.valueOf(taxAgentPrepareInfo.payType), 373 items.add(RefundItem.of(chargeItem, String.valueOf(taxAgentPrepareInfo.payType),
374 String.valueOf(amountYuan), "退款", taxAgentPrepareInfo.cardNo)); 374 String.valueOf(amountYuan), "退款", taxAgentPrepareInfo.cardNo));
375 map.put(REFUND_ITEM, items); 375 map.put(REFUND_ITEM, items);