|
@@ -242,7 +242,7 @@ public class TaPointsRecordsServiceImpl extends ServiceImpl<TaPointsRecordsMappe
|
242
|
242
|
|
243
|
243
|
// 发放积分
|
244
|
244
|
TaPerson taPerson = taPersonMapper.getById(taRecommendCustomer.getRecommendPerson());
|
245
|
|
- if (savePoints(taPerson, changeType, changeParams, pointsAmount, orgId)) {
|
|
245
|
+ if (null != taPerson && savePoints(taPerson, changeType, changeParams, pointsAmount, orgId)) {
|
246
|
246
|
taPersonMapper.setFieldIncrement(taPerson.getPersonId(), "points", pointsAmount);
|
247
|
247
|
}
|
248
|
248
|
}
|