Commit 1d3d241feac828852d42f7122472973d93774673
1 parent
5309c5c5
update..
Showing
2 changed files
with
18 additions
and
1 deletions
src/main/java/com/bsth/service/gps/GpsServiceImpl.java
| ... | ... | @@ -380,7 +380,7 @@ public class GpsServiceImpl implements GpsService { |
| 380 | 380 | int sWeekOfYear = sCal.get(Calendar.WEEK_OF_YEAR); |
| 381 | 381 | Calendar eCal = Calendar.getInstance(); |
| 382 | 382 | eCal.setTime(new Date(et * 1000)); |
| 383 | - int eWeekOfYear = eCal.get(Calendar.DAY_OF_YEAR); | |
| 383 | + int eWeekOfYear = eCal.get(Calendar.WEEK_OF_YEAR); | |
| 384 | 384 | |
| 385 | 385 | //按年分表 |
| 386 | 386 | String tableName = "bsth_c_arrival_info_" + fmtyyyy.print(st); | ... | ... |
src/main/resources/static/real_control_v2/js/line_schedule/sch_table.js
| ... | ... | @@ -37,6 +37,8 @@ var gb_schedule_table = (function () { |
| 37 | 37 | rs[lineCode].sort(schedule_sort); |
| 38 | 38 | //calc shift |
| 39 | 39 | $.each(rs[lineCode], function () { |
| 40 | + if(this.status==-1) | |
| 41 | + clearActualTime(this); | |
| 40 | 42 | calc_sch_real_shift(this); |
| 41 | 43 | line2Schedule[lineCode][this.id] = this; |
| 42 | 44 | //子任务公里是否与计划平 |
| ... | ... | @@ -308,6 +310,8 @@ var gb_schedule_table = (function () { |
| 308 | 310 | //var tMaps = {}; |
| 309 | 311 | $.each(schArr, function () { |
| 310 | 312 | try { |
| 313 | + if(this.status==-1) | |
| 314 | + clearActualTime(this); | |
| 311 | 315 | //子任务公里是否与计划平 |
| 312 | 316 | this.c_t_mileage_status = calcCTaskMileageStatus(this); |
| 313 | 317 | line2Schedule[this.xlBm][this.id] = this; |
| ... | ... | @@ -332,6 +336,8 @@ var gb_schedule_table = (function () { |
| 332 | 336 | if (!isArray(schArr)) |
| 333 | 337 | schArr = [schArr]; |
| 334 | 338 | $.each(schArr, function () { |
| 339 | + if(this.status==-1) | |
| 340 | + clearActualTime(this); | |
| 335 | 341 | line2Schedule[this.xlBm][this.id] = this; |
| 336 | 342 | }); |
| 337 | 343 | }; |
| ... | ... | @@ -795,6 +801,17 @@ var gb_schedule_table = (function () { |
| 795 | 801 | } |
| 796 | 802 | }; |
| 797 | 803 | |
| 804 | + var clearActualTime = function (sch) { | |
| 805 | + try{ | |
| 806 | + sch.fcsjActual=null; | |
| 807 | + sch.fcsjActualTime=null; | |
| 808 | + sch.zdsjActual=null; | |
| 809 | + sch.zdsjActualTime=null; | |
| 810 | + }catch (e){ | |
| 811 | + console.log(e); | |
| 812 | + } | |
| 813 | + }; | |
| 814 | + | |
| 798 | 815 | return { |
| 799 | 816 | show: show, |
| 800 | 817 | findScheduleByLine: findScheduleByLine, | ... | ... |