|
@@ -57,10 +57,15 @@ public class StRankServiceImpl extends BaseServiceImpl<StRankMapper, StRank> imp
|
57
|
57
|
// 先将当前人员的 +1
|
58
|
58
|
baseMapper.increment("person", personId.toString());
|
59
|
59
|
|
60
|
|
- // 递归更新
|
61
|
60
|
TaPerson taPerson = taPersonMapper.selectById(personId);
|
62
|
|
- if (null != taPerson && null != taPerson.getRecommender()) {
|
63
|
|
- updateByPerson(taPerson.getRecommender());
|
|
61
|
+ if (null != taPerson && !StringUtils.isEmpty(taPerson.getAreaCode())) {
|
|
62
|
+ baseMapper.increment("area", taPerson.getAreaCode());
|
|
63
|
+ }
|
|
64
|
+
|
|
65
|
+ // 递归更新
|
|
66
|
+ TaPerson recommender = taPersonMapper.selectById(personId);
|
|
67
|
+ if (null != recommender && null != recommender.getRecommender()) {
|
|
68
|
+ updateByPerson(recommender.getRecommender());
|
64
|
69
|
}
|
65
|
70
|
}
|
66
|
71
|
|