Commit b770f792 by tc

bug:[none] 排名问题

parent 4c202926
...@@ -768,10 +768,9 @@ public class CultivateBizImpl implements CultivateBiz { ...@@ -768,10 +768,9 @@ public class CultivateBizImpl implements CultivateBiz {
public Integer getRanking(Long wechatUserId) { public Integer getRanking(Long wechatUserId) {
Cultivate cultivate = cultivateDao.getByWechatUserId(wechatUserId); Cultivate cultivate = cultivateDao.getByWechatUserId(wechatUserId);
if(cultivate==null || cultivate.getStar()==0){ if(cultivate==null || cultivate.getStar()==0){
int rank =cultivateDao.getAllCounts(); return cultivateDao.getAllCounts();
} }
int rank = cultivateDao.getRank(cultivate.getStar()); return cultivateDao.getRank(cultivate.getStar());
return rank;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment