| @@ -1991,7 +1991,6 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| public static List<BillTimeVo> initBillTimeList(Date start,Date end,Integer adjustPeriod,Integer dayType,int receivePeriod){ | public static List<BillTimeVo> initBillTimeList(Date start,Date end,Integer adjustPeriod,Integer dayType,int receivePeriod){ | ||||
| List<BillTimeVo> list = new ArrayList<>(); | List<BillTimeVo> list = new ArrayList<>(); | ||||
| int warnCount = 0; | |||||
| int count = 0; | int count = 0; | ||||
| while (true){ | while (true){ | ||||
| BillTimeVo timeVo = new BillTimeVo(); | BillTimeVo timeVo = new BillTimeVo(); | ||||
| @@ -2046,12 +2045,11 @@ public class WxRentContractServiceImpl implements WxRentContractService { | |||||
| count ++; | count ++; | ||||
| //预警 | //预警 | ||||
| if(warnCount >= 1000){ | |||||
| if(count >= 1000){ | |||||
| Logger logger = LoggerFactory.getLogger(WxRentContractServiceImpl.class); | Logger logger = LoggerFactory.getLogger(WxRentContractServiceImpl.class); | ||||
| logger.error("initBillTimeList() warnCount max error !!!"); | logger.error("initBillTimeList() warnCount max error !!!"); | ||||
| break; | break; | ||||
| } | } | ||||
| warnCount ++; | |||||
| } | } | ||||
| return list; | return list; | ||||
| } | } | ||||