private void recSetStopTimeInfo() { setStopTimeCarCount = 0; CarBean carBean = null; byte[] stopTime = null; for (Iterator<Map.Entry<String, CarBean>> ite = cars.entrySet().iterator(); ite.hasNext(); ) { carBean = ite.next().getValue(); stopTime = carBean.getStopTime(); if (stopTime != null && !KKTool.isArrayDataSame(stopTime, STOP_TIME)) { setStopTimeCarCount++; KKLog.warn(carBean.getCarNo() + "设置了停机时间:" + KKTool.byteArrayToHexStr(stopTime)); } } }
public byte[] getCarStopTime(String carNo) { byte[] stopTime = null; CarBean carBean = this.cars.get(carNo); if (carBean != null) { stopTime = carBean.getStopTime(); } if (stopTime == null) { stopTime = STOP_TIME; } return stopTime; }