记得上下班打卡 | git大法好,push需谨慎

Commit 6baba80c authored by jiangxiulong's avatar jiangxiulong

排名

parent ecb64c98
...@@ -138,9 +138,9 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S ...@@ -138,9 +138,9 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
if (statVoOld.getCityCode().equals(cityVote.getCityCode())) { if (statVoOld.getCityCode().equals(cityVote.getCityCode())) {
Integer oldRanking = statVoOld.getRanking(); Integer oldRanking = statVoOld.getRanking();
if (null != oldRanking) { // 老数据没有这个字段默认为上升 if (null != oldRanking) { // 老数据没有这个字段默认为上升
if (ranking > oldRanking) { if (oldRanking > ranking) {
rankingUpOrDown = 2; rankingUpOrDown = 2;
} else if (ranking < oldRanking) { } else if (oldRanking < ranking) {
rankingUpOrDown = 3; rankingUpOrDown = 3;
} else { } else {
rankingUpOrDown = 1; rankingUpOrDown = 1;
......
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