Commit ff49e9eb671e40cb16d2d43508eb482341bb0e98
1 parent
afe65a2d
1.调度加入异常停车提示
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/bsth/task/TimedTask.java
| ... | ... | @@ -52,10 +52,10 @@ public class TimedTask { |
| 52 | 52 | if (sb != null) { |
| 53 | 53 | List<CarErrorStop> carErrorStopList = mapper.readValue(sb.toString(), mapper.getTypeFactory().constructParametricType(List.class, CarErrorStop.class)); |
| 54 | 54 | for (CarErrorStop carErrorStop : carErrorStopList) { |
| 55 | - //if (!carErrorStopSet.contains(carErrorStop)) { | |
| 56 | - // carErrorStopSet.add(carErrorStop); | |
| 55 | + if (!carErrorStopSet.contains(carErrorStop)) { | |
| 56 | + carErrorStopSet.add(carErrorStop); | |
| 57 | 57 | sendUtils.sendCarErrorStop(carErrorStop); |
| 58 | - //} | |
| 58 | + } | |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | } catch (Exception e) { | ... | ... |