|
|
|
@@ -143,9 +143,9 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
//int currentCreditAmount = wxCreditHistoryMapper.creditAmount(record.getCUserId()); |
|
|
|
int currentCreditAmount = 0; |
|
|
|
//获取当前用户总积分规则:优先获取wxCUserBasicInfo中数据 若不存在 再获取wxCUser表中数据 |
|
|
|
if (wxCUserBasicInfo != null && wxCUserBasicInfo.getCredit() > 0) { |
|
|
|
if (wxCUserBasicInfo != null && wxCUserBasicInfo.getCredit() != null && wxCUserBasicInfo.getCredit() > 0) { |
|
|
|
currentCreditAmount = wxCUserBasicInfo.getCredit(); |
|
|
|
} else if (wxCUser != null && wxCUser.getCredit() > 0) { |
|
|
|
} else if (wxCUser != null && wxCUser.getCredit() != null && wxCUser.getCredit() > 0) { |
|
|
|
currentCreditAmount = wxCUser.getCredit(); |
|
|
|
} |
|
|
|
|
|
|
|
|