Commit 9be95270bab146e645cecce20c8192e24172e986

Authored by 吕琪
1 parent 7c386997

refactor(tax): 修改费用项

cashier-mall/src/main/java/com/diligrp/cashier/mall/service/biz/impl/TaxAgentNotifyServiceImpl.java
@@ -290,16 +290,16 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService { @@ -290,16 +290,16 @@ 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 + "-" + infoMap.get("orderType"); 293 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action;
294 String chargeItemDept; 294 String chargeItemDept;
295 295
296 if (taxAgentPrepareInfo.isCardPay) { 296 if (taxAgentPrepareInfo.isCardPay) {
297 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-B" + "-" + infoMap.get(AREA) + "-" + infoMap.get("orderType")); 297 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-B" + "-" + infoMap.get(AREA) + "-" + infoMap.get("orderType"));
298 - chargeItemDept = taxAgentPrepareInfo.payType + "-" + infoMap.get(AREA) + infoMap.get("orderType"); 298 + chargeItemDept = taxAgentPrepareInfo.payType + "-" + infoMap.get(AREA) + "-" + infoMap.get("orderType");
299 infoMap.put(SALE_DEPT, chargeItemDept); 299 infoMap.put(SALE_DEPT, chargeItemDept);
300 } else { 300 } else {
301 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-B" + "-" + infoMap.get("orderType")); 301 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-B" + "-" + infoMap.get("orderType"));
302 - chargeItemDept = String.valueOf(taxAgentPrepareInfo.payType) + infoMap.get("orderType"); 302 + chargeItemDept = String.valueOf(taxAgentPrepareInfo.payType) + "-" + infoMap.get("orderType");
303 infoMap.put(SALE_DEPT, chargeItemDept); 303 infoMap.put(SALE_DEPT, chargeItemDept);
304 } 304 }
305 // 客户 305 // 客户
@@ -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 + "-" + infoMap.get("orderType"); 314 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action;
315 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-S" + "-" + infoMap.get("orderType")); 315 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-S" + "-" + infoMap.get("orderType"));
316 - String chargeItemDept = taxAgentPrepareInfo.payType + "-" + infoMap.get("orderType") + "-" + infoMap.get("orderType"); 316 + String chargeItemDept = taxAgentPrepareInfo.payType + "-" + 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 + "-" + map.get("orderType"); 355 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action;
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 + "-" + map.get("orderType"); 372 + String chargeItem = taxAgentPrepareInfo.payType + "-" + taxAgentPrepareInfo.action;
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);