Commit 15958293d743457cd997bcad4cab7ec00a802cb3

Authored by 吕琪
1 parent e7e60463

fix(mall): 修复税务代理通知服务中的颜色标识逻辑

cashier-mall/src/main/java/com/diligrp/cashier/mall/service/biz/impl/TaxAgentNotifyServiceImpl.java
... ... @@ -315,10 +315,16 @@ public class TaxAgentNotifyServiceImpl implements TaxAgentNotifyService {
315 315 infoMap.put(ORG, taxAgentPrepareInfo.payType + "-S");
316 316 String chargeItemDept = String.valueOf(taxAgentPrepareInfo.payType);
317 317 infoMap.put(SALE_DEPT, chargeItemDept);
  318 + String quotedQuantity;
  319 + if (ObjectUtil.equal(taxAgentPrepareInfo.type, TaxMessageType.ORDER_PAY.getCode())) {
  320 + quotedQuantity = RED;
  321 + } else {
  322 + quotedQuantity = BLACK;
  323 + }
318 324  
319 325 sendReceivableMessage(sellerCustomerCode, infoMap, chargeItem, taxAgentPrepareInfo.amount,
320 326 taxAgentPrepareInfo.systemDataId, entity, pipelineCode,
321   - taxAgentPrepareInfo.businessCode, taxAgentPrepareInfo.quotedQuantity, chargeItemDept);
  327 + taxAgentPrepareInfo.businessCode, quotedQuantity, chargeItemDept);
322 328 }
323 329  
324 330 private void sendReceivableMessage(String customerCode, Map<String, Object> map, String chargeItem,
... ...