|
|
|
@@ -223,10 +223,11 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
WxCreditHistory wxCreditHistory = new WxCreditHistory(); |
|
|
|
wxCreditHistory.setBusinessId(Long.valueOf(wxMerchant.getBusinessId())); |
|
|
|
wxCreditHistory.setTenantId(tenantId); |
|
|
|
if (StringUtils.isNotEmpty(spendStr)) { |
|
|
|
int credit = 0; |
|
|
|
if (StringUtils.isNotBlank(spendStr)) { |
|
|
|
wxCreditHistory.setSpend(new BigDecimal(spendStr).multiply(new BigDecimal(100)).intValue()); |
|
|
|
credit = payAddCredit(wxCreditHistory); |
|
|
|
} |
|
|
|
int credit = payAddCredit(wxCreditHistory); |
|
|
|
creditMap.put("credit", credit); |
|
|
|
} |
|
|
|
return creditMap; |
|
|
|
|