|
|
|
@@ -247,7 +247,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
|
|
|
|
if (payAccount.checkShare()) { |
|
|
|
// 分账 |
|
|
|
if (cardInfo.isBuyed()) { |
|
|
|
if (cardInfo.getSaleAmount() > 0) { |
|
|
|
// 9. 只有有价卡才能分账 |
|
|
|
try { |
|
|
|
shareForCardPay(record, record.getCardId(), record.getOrderId(), record.getId()); |
|
|
|
@@ -270,7 +270,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 有价储值卡消费时,如果未启用分账,金额也记入补贴表,可能会导致查询错误, TODO |
|
|
|
if (cardInfo.isBuyed() && payment > 0) { |
|
|
|
if (cardInfo.getSaleAmount() > 0 && payment > 0) { |
|
|
|
try { |
|
|
|
creteMerchantSubsidy(record, curDate, idWorker, coupon, payment); |
|
|
|
} catch (Exception ex) { |
|
|
|
|