Commit b2439e42e0c758ab2a17848abebcf07f8cacc7f4
1 parent
50ebd417
update..
Showing
5 changed files
with
15 additions
and
9 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/css/main.css
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> | ... | ... |