代码优化
This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@ public class CityRankingSendJob implements SimpleJob {
|
||||
List<CitySendLog> sendList = citySendLogService.find(city.getUid(), null, sendType);
|
||||
if ((null == sendList || sendList.isEmpty()) && !list.isEmpty()) {
|
||||
//取排名并发送
|
||||
for (int i = 0; i <= list.size(); i++) {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
if (city.getCity().equals(list.get(i).getCity())) {
|
||||
int rankings = i + 1;// 排名
|
||||
baseSend(city, rankings, sendType);
|
||||
|
||||
Reference in New Issue
Block a user