Commit 8137131202e1c6b7e120c288f7ef1d7e8992e20a
1 parent
0699e578
调度日报导出子任务修改,获取加油公里时过滤无加注量的路牌
Showing
4 changed files
with
21 additions
and
23 deletions
src/main/java/com/bsth/entity/oil/Ylb.java
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
| ... | ... | @@ -210,10 +210,9 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS |
| 210 | 210 | if(type.equals("update")){ |
| 211 | 211 | repository.save(t); |
| 212 | 212 | }else{ |
| 213 | - if(t.getJylc()==null){ | |
| 213 | + if(t.getJylc()==null && t.getJzl()>0){ | |
| 214 | 214 | t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); |
| 215 | 215 | } |
| 216 | - t.setJylc(0.0); | |
| 217 | 216 | addList.add(t); |
| 218 | 217 | } |
| 219 | 218 | |
| ... | ... | @@ -855,12 +854,12 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS |
| 855 | 854 | if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ |
| 856 | 855 | if(type.equals("add")){ |
| 857 | 856 | t.setCreatetime(date); |
| 858 | - if(t.getJylc()==null){ | |
| 857 | + if(t.getJylc()==null && t.getJzl()>0){ | |
| 859 | 858 | t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); |
| 860 | 859 | } |
| 861 | 860 | addList.add(t); |
| 862 | 861 | }else{ |
| 863 | - if(t.getJylc()==null){ | |
| 862 | + if(t.getJylc()==null && t.getJzl()>0){ | |
| 864 | 863 | t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); |
| 865 | 864 | } |
| 866 | 865 | t.setUpdatetime(date); | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -5203,20 +5203,22 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 5203 | 5203 | fcsjm = String.valueOf(fcsjActural_ - fcsj_); |
| 5204 | 5204 | } |
| 5205 | 5205 | } |
| 5206 | - String[] dfsj_s =schedule.getDfsj().split(":"); | |
| 5207 | - Long dfsj_ = Long.parseLong(dfsj_s[0]) * 60 + Long.parseLong(dfsj_s[1]); | |
| 5208 | - if ((dfsj_ - fcsjActural_) > 0) { | |
| 5209 | - if(dfsj_ - fcsjActural_>1200){ | |
| 5210 | - dfsjm=String.valueOf(1440-(dfsj_ - fcsjActural_)); | |
| 5211 | - }else{ | |
| 5212 | - dfsjk = String.valueOf(dfsj_ - fcsjActural_); | |
| 5213 | - } | |
| 5214 | - } else { | |
| 5215 | - if(fcsjActural_ - dfsj_>1200){ | |
| 5216 | - dfsjk= String.valueOf(1440-(fcsjActural_ - dfsj_)); | |
| 5217 | - }else{ | |
| 5218 | - dfsjm = String.valueOf(fcsjActural_ - dfsj_); | |
| 5219 | - } | |
| 5206 | + if(df.equals("df")){ | |
| 5207 | + String[] dfsj_s =schedule.getDfsj().split(":"); | |
| 5208 | + Long dfsj_ = Long.parseLong(dfsj_s[0]) * 60 + Long.parseLong(dfsj_s[1]); | |
| 5209 | + if ((dfsj_ - fcsjActural_) > 0) { | |
| 5210 | + if(dfsj_ - fcsjActural_>1200){ | |
| 5211 | + dfsjm=String.valueOf(1440-(dfsj_ - fcsjActural_)); | |
| 5212 | + }else{ | |
| 5213 | + dfsjk = String.valueOf(dfsj_ - fcsjActural_); | |
| 5214 | + } | |
| 5215 | + } else { | |
| 5216 | + if(fcsjActural_ - dfsj_>1200){ | |
| 5217 | + dfsjk= String.valueOf(1440-(fcsjActural_ - dfsj_)); | |
| 5218 | + }else{ | |
| 5219 | + dfsjm = String.valueOf(fcsjActural_ - dfsj_); | |
| 5220 | + } | |
| 5221 | + } | |
| 5220 | 5222 | } |
| 5221 | 5223 | } |
| 5222 | 5224 | if(df.equals("df")){ | ... | ... |
src/main/resources/static/pages/forms/statement/scheduleDaily.html
| ... | ... | @@ -467,7 +467,7 @@ |
| 467 | 467 | divFrom2 = window.document.getElementById('forms_1'); |
| 468 | 468 | divFrom2.style.width=divFrom1.offsetWidth+"px"; |
| 469 | 469 | }); |
| 470 | - $.get('/realSchedule/realScheduleList_zrw',{line:line,date:date,type:"query"},function(result){ | |
| 470 | + $.get('/realSchedule/realScheduleList',{line:line,date:date,type:"query"},function(result){ | |
| 471 | 471 | getTime(result); |
| 472 | 472 | var scheduleDaily_3 = template('scheduleDaily_3',{list:result}); |
| 473 | 473 | $('#forms_2 .scheduleDaily_3').html(scheduleDaily_3); |
| ... | ... | @@ -513,7 +513,7 @@ |
| 513 | 513 | params['xlName'] = xlName; |
| 514 | 514 | params['type'] = "export"; |
| 515 | 515 | params['state'] = '2'; |
| 516 | - params['genre'] = 'zrw'; | |
| 516 | + params['genre'] = 'qc'; | |
| 517 | 517 | $get('/realSchedule/scheduleDailyExport', params, function(result){ |
| 518 | 518 | if(date.length == 10) |
| 519 | 519 | window.open("/downloadFile/download?fileName="+moment(date).format("YYYYMMDD")+"-"+lineName+"-调度日报"); | ... | ... |