Commit d9e9eda5e3787407203d22fd898eb0ba51d54cb8

Authored by 娄高锋
1 parent 3fc3dfb3

调度历史消息sql查询车辆改为非必选;行车路单展示氢能源车耗能

src/main/java/com/bsth/repository/realcontrol/ScheduleRealInfoRepository.java
... ... @@ -50,7 +50,7 @@ public interface ScheduleRealInfoRepository extends BaseRepository<ScheduleRealI
50 50  
51 51 @Query(value="select d.device_id,d.sender,d.txt_content,d.timestamp,d.line_code, "
52 52 + " d.reply46,d.reply47 from "
53   - + " bsth_v_directive_60 d where d.line_code=?1 and d.device_id=?2 "
  53 + + " bsth_v_directive_60 d where d.line_code=?1 and d.device_id like %?2% "
54 54 + " and d.timestamp >=?3 and d.timestamp <=?4 ",nativeQuery=true)
55 55 List<Object[]> historyMessage(String line,String code,long d,long t);
56 56  
... ...
src/main/resources/static/pages/forms/statement/waybill.html
... ... @@ -440,7 +440,7 @@
440 440 <td colspan="14">路别:{{xlName}} 路牌:{{lpName}} 车号:{{clZbh}}({{plate}}) 出场时间:{{fcsjActual}} 到达站名:{{zdzName}} 当班调派:{{dbdp}} 日期:{{scheduleDate}}</td>
441 441 </tr>
442 442 <tr>
443   - {{if type==0}}
  443 + {{if type==0 && hyd!=1}}
444 444 <td colspan="2">出场存油 {{ccyl}}升</td>
445 445 <td colspan="2">加注量 {{jzl}}升</td>
446 446 <td colspan="2">进场存油 {{jcyl}}升</td>
... ... @@ -465,11 +465,11 @@
465 465 </tr>
466 466 {{if hyd==1}}
467 467 <tr>
468   - <td colspan="2">出场存氢 {{czql}}%</td>
  468 + <td colspan="2">出场存氢 {{czcl}}%</td>
469 469 <td colspan="2">充氢量 {{jql}}方</td>
470   - <td colspan="2">进场存氢 {{jzql}}%</td>
  470 + <td colspan="2">进场存氢 {{jzcl}}%</td>
471 471 <td colspan="4">加注机油 &nbsp;升</td>
472   - <td colspan="4">本日耗氢 {{hq}}方</td>
  472 + <td colspan="4">本日耗氢 {{hn}}方</td>
473 473 </tr>
474 474 {{/if}}
475 475 <tr>
... ...