Commit c23dec3b4e6b244ec7fd2bf65cab1c7bc314e7e5
Merge branch 'pudong' of 192.168.168.201:panzhaov5/bsth_control into pudong
Showing
9 changed files
with
29 additions
and
20 deletions
src/main/java/com/bsth/data/directive/GatewayHttpUtils.java
| @@ -48,9 +48,9 @@ public class GatewayHttpUtils { | @@ -48,9 +48,9 @@ public class GatewayHttpUtils { | ||
| 48 | 48 | ||
| 49 | int statusCode = response.getStatusLine().getStatusCode(); | 49 | int statusCode = response.getStatusLine().getStatusCode(); |
| 50 | if(statusCode != 200){ | 50 | if(statusCode != 200){ |
| 51 | - post.abort(); | 51 | + //post.abort(); |
| 52 | logger.error("http client status code: " + statusCode); | 52 | logger.error("http client status code: " + statusCode); |
| 53 | - return code; | 53 | + //return code; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | JSONObject json = JSONObject.parseObject(EntityUtils.toString(response.getEntity())); | 56 | JSONObject json = JSONObject.parseObject(EntityUtils.toString(response.getEntity())); |
src/main/java/com/bsth/service/gps/GpsServiceImpl.java
| @@ -387,7 +387,7 @@ public class GpsServiceImpl implements GpsService { | @@ -387,7 +387,7 @@ public class GpsServiceImpl implements GpsService { | ||
| 387 | dc = dcs.get(i); | 387 | dc = dcs.get(i); |
| 388 | if(dc.getSt() > st) | 388 | if(dc.getSt() > st) |
| 389 | t1 = dc.getSt(); | 389 | t1 = dc.getSt(); |
| 390 | - if(dc.getEt() < et) | 390 | + if(dc.getEt() < et && dc.getEt() != 0) |
| 391 | t2 = dc.getEt(); | 391 | t2 = dc.getEt(); |
| 392 | 392 | ||
| 393 | sql.append("SELECT DEVICE_ID,LINE_ID as LINE_CODE,STOP_NO,TS,UP_DOWN,IN_OUT,WEEKS_YEAR,CREATE_DATE FROM " + tableName + | 393 | sql.append("SELECT DEVICE_ID,LINE_ID as LINE_CODE,STOP_NO,TS,UP_DOWN,IN_OUT,WEEKS_YEAR,CREATE_DATE FROM " + tableName + |
src/main/resources/static/pages/history_sch/edit/history_sch_maintain.html
| @@ -495,22 +495,27 @@ | @@ -495,22 +495,27 @@ | ||
| 495 | $(that).prepend('<i class="uk-icon-spinner uk-icon-spin"></i>'); | 495 | $(that).prepend('<i class="uk-icon-spinner uk-icon-spin"></i>'); |
| 496 | 496 | ||
| 497 | 497 | ||
| 498 | - var reCountEp = EventProxy.create('ylbUpdate', function () { | 498 | + var reCountEp = EventProxy.create('ylbUpdate', 'calcWaybill', 'scheduleDetail', function () { |
| 499 | $('i.uk-icon-spin', that).remove(); | 499 | $('i.uk-icon-spin', that).remove(); |
| 500 | $(that).removeAttr('disabled'); | 500 | $(that).removeAttr('disabled'); |
| 501 | notify_succ('重新统计成功!'); | 501 | notify_succ('重新统计成功!'); |
| 502 | }); | 502 | }); |
| 503 | 503 | ||
| 504 | //统计路单 -娄高峰 | 504 | //统计路单 -娄高峰 |
| 505 | - /*gb_common.$get('/calcWaybill/generateNew', {date:rq, line: lineCode}, function () { | ||
| 506 | - reCountEp.emitLater('calcWaybill'); | ||
| 507 | - });*/ | 505 | + gb_common.$get('/calcWaybill/generateNew', {date:rq, line: lineCode}, function () { |
| 506 | + reCountEp.emitLater('calcWaybill'); | ||
| 507 | + }); | ||
| 508 | 508 | ||
| 509 | //统计油 -廖磊 | 509 | //统计油 -廖磊 |
| 510 | gb_common.$post('/ylb/updateHistory', {date:rq, line: lineCode}, function () { | 510 | gb_common.$post('/ylb/updateHistory', {date:rq, line: lineCode}, function () { |
| 511 | reCountEp.emitLater('ylbUpdate'); | 511 | reCountEp.emitLater('ylbUpdate'); |
| 512 | }); | 512 | }); |
| 513 | 513 | ||
| 514 | + //重新统计班次明细 | ||
| 515 | + gb_common.$post('/sch/reCalc/scheduleDetail', {date:rq, line: lineCode}, function () { | ||
| 516 | + reCountEp.emitLater('scheduleDetail'); | ||
| 517 | + }); | ||
| 518 | + | ||
| 514 | }, '我确定'); | 519 | }, '我确定'); |
| 515 | }); | 520 | }); |
| 516 | })(); | 521 | })(); |
src/main/resources/static/real_control_v2/alone_page/home/alone_data_gps.js
| @@ -41,7 +41,7 @@ var gb_data_gps = (function () { | @@ -41,7 +41,7 @@ var gb_data_gps = (function () { | ||
| 41 | upDownChange = []; | 41 | upDownChange = []; |
| 42 | 42 | ||
| 43 | var schArray; | 43 | var schArray; |
| 44 | - $.each(rs, function () { | 44 | + $.each(rs.gpsList, function () { |
| 45 | old = realData[this.deviceId]; | 45 | old = realData[this.deviceId]; |
| 46 | if (old) { | 46 | if (old) { |
| 47 | if (this.timestamp > old.timestamp) { | 47 | if (this.timestamp > old.timestamp) { |
src/main/resources/static/real_control_v2/alone_page/map/alone_data_gps.js
| @@ -55,11 +55,11 @@ var gb_data_gps = (function () { | @@ -55,11 +55,11 @@ var gb_data_gps = (function () { | ||
| 55 | addArr.push(this); | 55 | addArr.push(this); |
| 56 | 56 | ||
| 57 | //班次信息 | 57 | //班次信息 |
| 58 | - if (this.schId) { | ||
| 59 | - schArray = gb_schedule_table.findScheduleByLine(this.lineId); | ||
| 60 | - if (schArray) | ||
| 61 | - this.sch = schArray[this.schId]; | ||
| 62 | - } | 58 | + /*if (this.schId) { |
| 59 | + //schArray = gb_schedule_table.findScheduleByLine(this.lineId); | ||
| 60 | + ///if (schArray) | ||
| 61 | + // this.sch = schArray[this.schId]; | ||
| 62 | + }*/ | ||
| 63 | 63 | ||
| 64 | //时间格式化 | 64 | //时间格式化 |
| 65 | this.dateStr = moment(this.timestamp).format('YYYY-MM-DD HH:mm:ss'); | 65 | this.dateStr = moment(this.timestamp).format('YYYY-MM-DD HH:mm:ss'); |
src/main/resources/static/real_control_v2/css/main.css
| @@ -1147,7 +1147,7 @@ dl.intimity span.late-badge { | @@ -1147,7 +1147,7 @@ dl.intimity span.late-badge { | ||
| 1147 | } | 1147 | } |
| 1148 | 1148 | ||
| 1149 | .tip_task_list dl dt:nth-of-type(6), .tip_task_list dl dd:nth-of-type(6) { | 1149 | .tip_task_list dl dt:nth-of-type(6), .tip_task_list dl dd:nth-of-type(6) { |
| 1150 | - | 1150 | + width: 12%; |
| 1151 | } | 1151 | } |
| 1152 | 1152 | ||
| 1153 | .tip_task_list dl dd:nth-of-type(1) a { | 1153 | .tip_task_list dl dd:nth-of-type(1) a { |
src/main/resources/static/real_control_v2/js/forms/wrap.html
| @@ -193,9 +193,11 @@ | @@ -193,9 +193,11 @@ | ||
| 193 | 193 | ||
| 194 | cb && cb($(selector)); | 194 | cb && cb($(selector)); |
| 195 | 195 | ||
| 196 | - setTimeout(function(){ | ||
| 197 | - $('#line', '.form-page-content').trigger('change'); | ||
| 198 | - }, 500); | 196 | + if(selector === '#line') { |
| 197 | + setTimeout(function () { | ||
| 198 | + $('#line', '.form-page-content').trigger('change'); | ||
| 199 | + }, 500); | ||
| 200 | + } | ||
| 199 | }); | 201 | }); |
| 200 | 202 | ||
| 201 | return $(selector); | 203 | return $(selector); |
src/main/resources/static/real_control_v2/js/line_schedule/sch_table.js
| @@ -352,9 +352,10 @@ var gb_schedule_table = (function () { | @@ -352,9 +352,10 @@ var gb_schedule_table = (function () { | ||
| 352 | $(dds[1]).find('a').text(sch.lpName); | 352 | $(dds[1]).find('a').text(sch.lpName); |
| 353 | 353 | ||
| 354 | //车辆自编号 | 354 | //车辆自编号 |
| 355 | - $(dds[2]).replaceWith(temps['line-schedule-nbbm-temp'](sch)); | 355 | + var $newDds2 = $(temps['line-schedule-nbbm-temp'](sch)); |
| 356 | + $(dds[2]).replaceWith($newDds2); | ||
| 356 | //车辆双击 | 357 | //车辆双击 |
| 357 | - gb_schedule_table_dbclick.carCellClick($(dds[2])); | 358 | + gb_schedule_table_dbclick.carCellClick($newDds2); |
| 358 | $(dds[3]).text(sch.qdzArrDatejh ? sch.qdzArrDatejh : ''); | 359 | $(dds[3]).text(sch.qdzArrDatejh ? sch.qdzArrDatejh : ''); |
| 359 | $(dds[4]).text(sch.qdzArrDatesj ? sch.qdzArrDatesj : ''); | 360 | $(dds[4]).text(sch.qdzArrDatesj ? sch.qdzArrDatesj : ''); |
| 360 | 361 |
src/main/resources/static/real_control_v2/main.html
| @@ -237,9 +237,10 @@ | @@ -237,9 +237,10 @@ | ||
| 237 | <script src="/real_control_v2/js/safe_driv/safeDriv.js" merge="custom_js"></script> | 237 | <script src="/real_control_v2/js/safe_driv/safeDriv.js" merge="custom_js"></script> |
| 238 | <!-- #### 安全驾驶 end ### --> | 238 | <!-- #### 安全驾驶 end ### --> |
| 239 | 239 | ||
| 240 | -<!-- 打电话 --> | 240 | +<!-- 打电话 |
| 241 | <script src="http://180.168.57.114:4244/Scripts/CallCenter.js" ></script> | 241 | <script src="http://180.168.57.114:4244/Scripts/CallCenter.js" ></script> |
| 242 | <script src="/real_control_v2/js/safe_driv/call_phone.js" ></script> | 242 | <script src="/real_control_v2/js/safe_driv/call_phone.js" ></script> |
| 243 | +--> | ||
| 243 | </body> | 244 | </body> |
| 244 | 245 | ||
| 245 | </html> | 246 | </html> |