Commit 03747e39fa7a240ea2468f993d25988b67fdd19b
1 parent
74e0e099
update
Showing
6 changed files
with
10 additions
and
8 deletions
src/main/java/com/bsth/data/directive/FirstScheduleCheckThread.java
| @@ -31,7 +31,8 @@ public class FirstScheduleCheckThread extends Thread{ | @@ -31,7 +31,8 @@ public class FirstScheduleCheckThread extends Thread{ | ||
| 31 | 31 | ||
| 32 | Logger logger = LoggerFactory.getLogger(this.getClass()); | 32 | Logger logger = LoggerFactory.getLogger(this.getClass()); |
| 33 | 33 | ||
| 34 | - private final static long THREE_MINUTES = 1000 * 60 * 3L; | 34 | + //提前半小时下发指令 |
| 35 | + private final static long THREE_MINUTES = 1000 * 60 * 30L; | ||
| 35 | 36 | ||
| 36 | @Override | 37 | @Override |
| 37 | public void run() { | 38 | public void run() { |
src/main/java/com/bsth/data/pilot80/PilotReport.java
| @@ -55,7 +55,7 @@ public class PilotReport { | @@ -55,7 +55,7 @@ public class PilotReport { | ||
| 55 | 55 | ||
| 56 | //private static ScheduleComparator.FCNO schComp; | 56 | //private static ScheduleComparator.FCNO schComp; |
| 57 | 57 | ||
| 58 | - private static ArrayListMultimap<Integer, D80> d80MultiMap; | 58 | + private static ArrayListMultimap<String, D80> d80MultiMap; |
| 59 | 59 | ||
| 60 | Logger logger = LoggerFactory.getLogger(PilotReport.class); | 60 | Logger logger = LoggerFactory.getLogger(PilotReport.class); |
| 61 | 61 | ||
| @@ -68,7 +68,7 @@ public class PilotReport { | @@ -68,7 +68,7 @@ public class PilotReport { | ||
| 68 | //入库 | 68 | //入库 |
| 69 | d80Repository.save(d80); | 69 | d80Repository.save(d80); |
| 70 | //入缓存 | 70 | //入缓存 |
| 71 | - d80MultiMap.put(d80.getData().getLineId(), d80); | 71 | + d80MultiMap.put(d80.getData().getLineId().toString(), d80); |
| 72 | 72 | ||
| 73 | String nbbm = BasicData.deviceId2NbbmMap.get(d80.getDeviceId()); | 73 | String nbbm = BasicData.deviceId2NbbmMap.get(d80.getDeviceId()); |
| 74 | //处理 | 74 | //处理 |
| @@ -251,7 +251,7 @@ public class PilotReport { | @@ -251,7 +251,7 @@ public class PilotReport { | ||
| 251 | * @Description: TODO(根据lineCode 获取未处理的80数据) | 251 | * @Description: TODO(根据lineCode 获取未处理的80数据) |
| 252 | */ | 252 | */ |
| 253 | public List<D80> unconfirmed80(Integer lineCode){ | 253 | public List<D80> unconfirmed80(Integer lineCode){ |
| 254 | - List<D80> lineAll = d80MultiMap.get(lineCode) | 254 | + List<D80> lineAll = d80MultiMap.get(lineCode.toString()) |
| 255 | ,rs = new ArrayList<>(); | 255 | ,rs = new ArrayList<>(); |
| 256 | 256 | ||
| 257 | for(D80 d80 : lineAll) | 257 | for(D80 d80 : lineAll) |
| @@ -283,7 +283,7 @@ public class PilotReport { | @@ -283,7 +283,7 @@ public class PilotReport { | ||
| 283 | 283 | ||
| 284 | public void clear(String lineCode){ | 284 | public void clear(String lineCode){ |
| 285 | logger.info("清除 80数据 before: " + d80MultiMap.size()); | 285 | logger.info("清除 80数据 before: " + d80MultiMap.size()); |
| 286 | - d80MultiMap.removeAll(Integer.parseInt(lineCode)); | 286 | + d80MultiMap.removeAll(lineCode); |
| 287 | logger.info("清除 80数据 after: " + d80MultiMap.size()); | 287 | logger.info("清除 80数据 after: " + d80MultiMap.size()); |
| 288 | } | 288 | } |
| 289 | 289 |
src/main/java/com/bsth/service/directive/DirectiveServiceImpl.java
| @@ -437,7 +437,7 @@ public class DirectiveServiceImpl extends BaseServiceImpl<D60, Integer> implemen | @@ -437,7 +437,7 @@ public class DirectiveServiceImpl extends BaseServiceImpl<D60, Integer> implemen | ||
| 437 | Collections.sort(d80s, new Comparator<D80>() { | 437 | Collections.sort(d80s, new Comparator<D80>() { |
| 438 | @Override | 438 | @Override |
| 439 | public int compare(D80 o1, D80 o2) { | 439 | public int compare(D80 o1, D80 o2) { |
| 440 | - return (int) (o1.getTimestamp() - o2.getTimestamp()); | 440 | + return (int) (o2.getTimestamp() - o1.getTimestamp()); |
| 441 | } | 441 | } |
| 442 | }); | 442 | }); |
| 443 | 443 |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| @@ -315,6 +315,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -315,6 +315,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 315 | t.setRealExecDate(schDate); | 315 | t.setRealExecDate(schDate); |
| 316 | t.setCreateBy(user); | 316 | t.setCreateBy(user); |
| 317 | t.setSflj(true); | 317 | t.setSflj(true); |
| 318 | + t.setLate(false); | ||
| 318 | //班次历时 | 319 | //班次历时 |
| 319 | t.setBcsj(DateUtils.calcHHmmDiff(t.getFcsj(), t.getZdsj()) / 1000 / 60); | 320 | t.setBcsj(DateUtils.calcHHmmDiff(t.getFcsj(), t.getZdsj()) / 1000 / 60); |
| 320 | 321 |
src/main/java/com/bsth/websocket/handler/RealControlSocketHandler.java
| @@ -120,7 +120,7 @@ public class RealControlSocketHandler implements WebSocketHandler { | @@ -120,7 +120,7 @@ public class RealControlSocketHandler implements WebSocketHandler { | ||
| 120 | user.sendMessage(message); | 120 | user.sendMessage(message); |
| 121 | } | 121 | } |
| 122 | } catch (IOException e) { | 122 | } catch (IOException e) { |
| 123 | - e.printStackTrace(); | 123 | + logger.error("sendMessageToLine error ....", e); |
| 124 | } | 124 | } |
| 125 | } | 125 | } |
| 126 | } | 126 | } |
src/main/resources/static/pages/control/line/index.html
| @@ -228,7 +228,7 @@ function countDown(name){ | @@ -228,7 +228,7 @@ function countDown(name){ | ||
| 228 | 228 | ||
| 229 | <script> | 229 | <script> |
| 230 | var updateLog = { | 230 | var updateLog = { |
| 231 | - text: '<div class="updete_log"><p>1、修正因设备状态异常导致的第一个营运班次被跳过问题。</p><p>2、修复发车信息微调报出的“未知异常”问题。</p></div>' | 231 | + text: '<div class="updete_log"><p>1、...</p></div>' |
| 232 | ,title: '2016年8月28号更新日志' | 232 | ,title: '2016年8月28号更新日志' |
| 233 | } | 233 | } |
| 234 | 234 |