Commit 15958293d743457cd997bcad4cab7ec00a802cb3
1 parent
e7e60463
fix(mall): 修复税务代理通知服务中的颜色标识逻辑
Showing
1 changed file
with
7 additions
and
1 deletions
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, | ... | ... |