Commit 4295837d68936e831129165ecda28d09e75573e3

Authored by 潘钊
1 parent 0623d4ae

update...

src/main/java/com/bsth/service/directive/DirectiveServiceImpl.java
@@ -331,17 +331,18 @@ public class DirectiveServiceImpl extends BaseServiceImpl<D60, Integer> implemen @@ -331,17 +331,18 @@ public class DirectiveServiceImpl extends BaseServiceImpl<D60, Integer> implemen
331 rs.put("msg", "发送C0响应指令到车载设备失败,但该操作已经被系统记录!"); 331 rs.put("msg", "发送C0响应指令到车载设备失败,但该操作已经被系统记录!");
332 332
333 pilotReport.reply(d80); 333 pilotReport.reply(d80);
  334 +
  335 + // 通知页面
  336 + Map<String, Object> sockMap = new HashMap<>();
  337 + sockMap.put("fn", "d80Confirm");
  338 + sockMap.put("id", d80.getId());
  339 + sockMap.put("lineId", d80.getData().getLineId());
  340 + socketHandler.sendMessageToLine(d80.getData().getLineId().toString(), JSON.toJSONString(sockMap));
334 } 341 }
335 } catch (Exception e) { 342 } catch (Exception e) {
336 logger.error("80响应出现异常...", e); 343 logger.error("80响应出现异常...", e);
337 rs.put("status", ResponseCode.SUCCESS); 344 rs.put("status", ResponseCode.SUCCESS);
338 } 345 }
339 - // 通知页面  
340 - Map<String, Object> sockMap = new HashMap<>();  
341 - sockMap.put("fn", "d80Confirm");  
342 - sockMap.put("id", d80.getId());  
343 - sockMap.put("lineId", d80.getData().getLineId());  
344 - socketHandler.sendMessageToLine(d80.getData().getLineId().toString(), JSON.toJSONString(sockMap));  
345 346
346 return rs; 347 return rs;
347 } 348 }