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 | 48 | |
| 49 | 49 | int statusCode = response.getStatusLine().getStatusCode(); |
| 50 | 50 | if(statusCode != 200){ |
| 51 | - post.abort(); | |
| 51 | + //post.abort(); | |
| 52 | 52 | logger.error("http client status code: " + statusCode); |
| 53 | - return code; | |
| 53 | + //return code; | |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 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 | 387 | dc = dcs.get(i); |
| 388 | 388 | if(dc.getSt() > st) |
| 389 | 389 | t1 = dc.getSt(); |
| 390 | - if(dc.getEt() < et) | |
| 390 | + if(dc.getEt() < et && dc.getEt() != 0) | |
| 391 | 391 | t2 = dc.getEt(); |
| 392 | 392 | |
| 393 | 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 | 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 | 499 | $('i.uk-icon-spin', that).remove(); |
| 500 | 500 | $(that).removeAttr('disabled'); |
| 501 | 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 | 510 | gb_common.$post('/ylb/updateHistory', {date:rq, line: lineCode}, function () { |
| 511 | 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
src/main/resources/static/real_control_v2/alone_page/map/alone_data_gps.js
| ... | ... | @@ -55,11 +55,11 @@ var gb_data_gps = (function () { |
| 55 | 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 | 65 | this.dateStr = moment(this.timestamp).format('YYYY-MM-DD HH:mm:ss'); | ... | ... |
src/main/resources/static/real_control_v2/css/main.css
src/main/resources/static/real_control_v2/js/forms/wrap.html
| ... | ... | @@ -193,9 +193,11 @@ |
| 193 | 193 | |
| 194 | 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 | 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 | 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 | 359 | $(dds[3]).text(sch.qdzArrDatejh ? sch.qdzArrDatejh : ''); |
| 359 | 360 | $(dds[4]).text(sch.qdzArrDatesj ? sch.qdzArrDatesj : ''); |
| 360 | 361 | ... | ... |
src/main/resources/static/real_control_v2/main.html
| ... | ... | @@ -237,9 +237,10 @@ |
| 237 | 237 | <script src="/real_control_v2/js/safe_driv/safeDriv.js" merge="custom_js"></script> |
| 238 | 238 | <!-- #### 安全驾驶 end ### --> |
| 239 | 239 | |
| 240 | -<!-- 打电话 --> | |
| 240 | +<!-- 打电话 | |
| 241 | 241 | <script src="http://180.168.57.114:4244/Scripts/CallCenter.js" ></script> |
| 242 | 242 | <script src="/real_control_v2/js/safe_driv/call_phone.js" ></script> |
| 243 | +--> | |
| 243 | 244 | </body> |
| 244 | 245 | |
| 245 | 246 | </html> | ... | ... |