ソースを参照

[积分][修改]:修复不传值空指针问题

release_toaliyun_real
hanxueda 7年前
コミット
e8ec6ebe6b
1個のファイルの変更3行の追加2行の削除
  1. +3
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java

+ 3
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java ファイルの表示

@@ -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;


読み込み中…
キャンセル
保存