代码优化

This commit is contained in:
bayi
2018-05-22 11:55:32 +08:00
parent 1f5829b1a2
commit ab70031e32
@@ -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);