Commit 9671c91d01313c393699d14273046301d9f29e71

Authored by 王通
1 parent 73ee3565

1.配置变更

src/main/java/com/bsth/XDApplication.java
@@ -239,6 +239,7 @@ public class XDApplication implements CommandLineRunner { @@ -239,6 +239,7 @@ public class XDApplication implements CommandLineRunner {
239 ScheduledExecutorService sexec = Application.mainServices; 239 ScheduledExecutorService sexec = Application.mainServices;
240 //安全驾驶 240 //安全驾驶
241 sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); 241 sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS);
  242 + sexec.scheduleWithFixedDelay(mtPlanDataLoadThread, 180, 10, TimeUnit.SECONDS);
242 243
243 GpsDataLoaderThread.setFlag(-1); 244 GpsDataLoaderThread.setFlag(-1);
244 //dayOfSchedule.dataRecovery(); 245 //dayOfSchedule.dataRecovery();
@@ -285,6 +286,7 @@ public class XDApplication implements CommandLineRunner { @@ -285,6 +286,7 @@ public class XDApplication implements CommandLineRunner {
285 ScheduledExecutorService sexec = Application.mainServices; 286 ScheduledExecutorService sexec = Application.mainServices;
286 //安全驾驶 287 //安全驾驶
287 sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); 288 sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS);
  289 + sexec.scheduleWithFixedDelay(mtPlanDataLoadThread, 180, 10, TimeUnit.SECONDS);
288 290
289 GpsDataLoaderThread.setFlag(-1); 291 GpsDataLoaderThread.setFlag(-1);
290 /** 线调业务 */ 292 /** 线调业务 */
src/main/java/com/bsth/websocket/handler/SendUtils.java
@@ -261,7 +261,9 @@ public class SendUtils{ @@ -261,7 +261,9 @@ public class SendUtils{
261 ObjectMapper mapper = new ObjectMapper(); 261 ObjectMapper mapper = new ObjectMapper();
262 262
263 try { 263 try {
264 - socketHandler.sendMessageToLine(maintenancePlan.getLine(), mapper.writeValueAsString(map)); 264 + if (maintenancePlan.getLine() != null) {
  265 + socketHandler.sendMessageToLine(maintenancePlan.getLine(), mapper.writeValueAsString(map));
  266 + }
265 } catch (JsonProcessingException e) { 267 } catch (JsonProcessingException e) {
266 logger.error("sendMaintenancePlan", e); 268 logger.error("sendMaintenancePlan", e);
267 } 269 }
src/main/resources/application-cloud.properties
@@ -38,6 +38,11 @@ http.gps.real.url= http://192.170.100.252:8080/transport_server/rtgps/ @@ -38,6 +38,11 @@ http.gps.real.url= http://192.170.100.252:8080/transport_server/rtgps/
38 http.send.directive = http://192.170.100.252:8080/transport_server/message/ 38 http.send.directive = http://192.170.100.252:8080/transport_server/message/
39 ## rfid data 39 ## rfid data
40 http.rfid.url= http://192.170.100.80:9000/rfid 40 http.rfid.url= http://192.170.100.80:9000/rfid
  41 +## wxsb
  42 +http.report.url.05= http://116.228.197.222:8081/ygjwsystem_j2ee/clbx/clbx_dd.do
  43 +http.report.url.22= http://116.247.73.122:9098/jgjwsystem_j2ee/clbx/clbx_dd.do
  44 +http.report.url.26= http://116.236.141.34:8088/nhjwsystem_j2ee/clbx/clbx_dd.do
  45 +http.report.url.55= http://180.168.216.248:8088/snjwsystem_j2ee/clbx/clbx_dd.do
41 ## http ticketing interface 46 ## http ticketing interface
42 http.ticketing.interface= http://112.64.187.3:1080/gjService/request 47 http.ticketing.interface= http://112.64.187.3:1080/gjService/request
43 http.mtplan.interface= https://112.64.45.51/wxk-prod-api/service-api/pdgj/schedule/byinfo 48 http.mtplan.interface= https://112.64.45.51/wxk-prod-api/service-api/pdgj/schedule/byinfo
src/main/resources/control-jdbc.properties
1 station.mysql.driver= com.mysql.jdbc.Driver 1 station.mysql.driver= com.mysql.jdbc.Driver
2 -station.mysql.url= jdbc:mysql://10.10.200.121:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false 2 +station.mysql.url= jdbc:mysql://192.170.100.132/control?useUnicode=true&characterEncoding=utf-8&useSSL=false
3 station.mysql.username= root 3 station.mysql.username= root
4 station.mysql.password= root2jsp 4 station.mysql.password= root2jsp
5 5
src/main/resources/ms-jdbc.properties
@@ -4,6 +4,6 @@ @@ -4,6 +4,6 @@
4 #ms.mysql.password= 123456 4 #ms.mysql.password= 123456
5 5
6 ms.mysql.driver= com.mysql.jdbc.Driver 6 ms.mysql.driver= com.mysql.jdbc.Driver
7 -ms.mysql.url= jdbc:mysql://10.10.150.122:3306/ms?useUnicode=true&characterEncoding=utf-8 7 +ms.mysql.url= jdbc:mysql://192.170.100.63/ms?useUnicode=true&characterEncoding=utf-8
8 ms.mysql.username= root 8 ms.mysql.username= root
9 ms.mysql.password= root2jsp 9 ms.mysql.password= root2jsp
10 \ No newline at end of file 10 \ No newline at end of file
src/main/resources/static/real_control_v2/js/safe_driv/safeDriv.js
@@ -86,6 +86,7 @@ var gb_safe_driv = (function () { @@ -86,6 +86,7 @@ var gb_safe_driv = (function () {
86 // 浦东公交维修库 86 // 浦东公交维修库
87 case 'mt': 87 case 'mt':
88 var data = { zbh: $(this).data('zbh'), bydj: $(this).data('bydj'), bysj: $(this).data('bysj'), bydd: $(this).data('bydd')}; 88 var data = { zbh: $(this).data('zbh'), bydj: $(this).data('bydj'), bysj: $(this).data('bysj'), bydd: $(this).data('bydd')};
  89 + $(this).remove();
89 window.localStorage.setItem('mtPlanModal', JSON.stringify(data)); 90 window.localStorage.setItem('mtPlanModal', JSON.stringify(data));
90 open_modal('/real_control_v2/fragments/multi_plat_msg/mt_plan_modal.html', {}, {center: false, bgclose: false}); 91 open_modal('/real_control_v2/fragments/multi_plat_msg/mt_plan_modal.html', {}, {center: false, bgclose: false});
91 break; 92 break;
src/main/resources/traffic-jdbc.properties
@@ -4,6 +4,6 @@ @@ -4,6 +4,6 @@
4 #ms.mysql.password= 123456 4 #ms.mysql.password= 123456
5 5
6 ms.mysql.driver= com.mysql.jdbc.Driver 6 ms.mysql.driver= com.mysql.jdbc.Driver
7 -ms.mysql.url= jdbc:mysql://10.10.150.122:3306/ms?useUnicode=true&characterEncoding=utf-8 7 +ms.mysql.url= jdbc:mysql://192.170.100.63/ms?useUnicode=true&characterEncoding=utf-8
8 ms.mysql.username= root 8 ms.mysql.username= root
9 ms.mysql.password= root2jsp 9 ms.mysql.password= root2jsp
10 \ No newline at end of file 10 \ No newline at end of file