Commit e4b53f8ac3f8aa19eadc189cf51c6eb4b4a7449c
1 parent
450f5ba9
嘉定:油量平衡表,班次日报,行车路单中加入路牌加油里程
Showing
14 changed files
with
191 additions
and
72 deletions
src/main/java/com/bsth/controller/jdtest/JdTestController.java
| @@ -40,7 +40,7 @@ public class JdTestController extends BaseController<Ylb, Integer>{ | @@ -40,7 +40,7 @@ public class JdTestController extends BaseController<Ylb, Integer>{ | ||
| 40 | SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"), | 40 | SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"), |
| 41 | sdfSimple = new SimpleDateFormat("yyyyMMdd"); | 41 | sdfSimple = new SimpleDateFormat("yyyyMMdd"); |
| 42 | Map<String, Object> dMap=new HashMap<>(); | 42 | Map<String, Object> dMap=new HashMap<>(); |
| 43 | - dMap.put("dGroup", "oilType"); | 43 | + dMap.put("dGroup_eq", "oilType"); |
| 44 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); | 44 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); |
| 45 | while (it.hasNext()) { | 45 | while (it.hasNext()) { |
| 46 | Dictionary d=it.next(); | 46 | Dictionary d=it.next(); |
src/main/java/com/bsth/controller/oil/YlbController.java
| @@ -262,7 +262,7 @@ public class YlbController extends BaseController<Ylb, Integer>{ | @@ -262,7 +262,7 @@ public class YlbController extends BaseController<Ylb, Integer>{ | ||
| 262 | SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"), | 262 | SimpleDateFormat sdfMonth = new SimpleDateFormat("yyyy-MM-dd"), |
| 263 | sdfSimple = new SimpleDateFormat("yyyyMMdd"); | 263 | sdfSimple = new SimpleDateFormat("yyyyMMdd"); |
| 264 | Map<String, Object> dMap=new HashMap<>(); | 264 | Map<String, Object> dMap=new HashMap<>(); |
| 265 | - dMap.put("dGroup", "oilType"); | 265 | + dMap.put("dGroup_eq", "oilType"); |
| 266 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); | 266 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); |
| 267 | while (it.hasNext()) { | 267 | while (it.hasNext()) { |
| 268 | Dictionary d=it.next(); | 268 | Dictionary d=it.next(); |
| @@ -288,6 +288,8 @@ public class YlbController extends BaseController<Ylb, Integer>{ | @@ -288,6 +288,8 @@ public class YlbController extends BaseController<Ylb, Integer>{ | ||
| 288 | m.put("nbbm", y.getNbbm()); | 288 | m.put("nbbm", y.getNbbm()); |
| 289 | m.put("jsy", y.getJsy()); | 289 | m.put("jsy", y.getJsy()); |
| 290 | m.put("name", y.getName()); | 290 | m.put("name", y.getName()); |
| 291 | + m.put("lp", y.getLp()==null?"":y.getLp()); | ||
| 292 | + m.put("jylc", y.getJylc_()); | ||
| 291 | m.put("jzl", y.getJzl()<=0?"0":y.getJzl()); | 293 | m.put("jzl", y.getJzl()<=0?"0":y.getJzl()); |
| 292 | m.put("czlc", "0"); | 294 | m.put("czlc", "0"); |
| 293 | m.put("jzlc", "0"); | 295 | m.put("jzlc", "0"); |
src/main/java/com/bsth/entity/oil/Ylb.java
| @@ -12,6 +12,7 @@ import javax.persistence.Transient; | @@ -12,6 +12,7 @@ import javax.persistence.Transient; | ||
| 12 | import org.springframework.format.annotation.DateTimeFormat; | 12 | import org.springframework.format.annotation.DateTimeFormat; |
| 13 | 13 | ||
| 14 | import com.bsth.data.BasicData; | 14 | import com.bsth.data.BasicData; |
| 15 | +import com.bsth.util.Arith; | ||
| 15 | 16 | ||
| 16 | @Entity | 17 | @Entity |
| 17 | @Table(name = "bsth_c_ylb") | 18 | @Table(name = "bsth_c_ylb") |
| @@ -53,21 +54,25 @@ public class Ylb { | @@ -53,21 +54,25 @@ public class Ylb { | ||
| 53 | private Date edittime; | 54 | private Date edittime; |
| 54 | private Date updatetime; | 55 | private Date updatetime; |
| 55 | private Date createtime; | 56 | private Date createtime; |
| 57 | + private Double jylc; | ||
| 58 | + | ||
| 56 | 59 | ||
| 57 | private int nylx; | 60 | private int nylx; |
| 58 | //进场顺序(根据最先出场和最后进场来关联车辆的存油量) | 61 | //进场顺序(根据最先出场和最后进场来关联车辆的存油量) |
| 59 | private int jcsx; | 62 | private int jcsx; |
| 60 | 63 | ||
| 61 | private String lp; | 64 | private String lp; |
| 65 | + | ||
| 66 | + @Transient | ||
| 67 | + private Double zlc_; //排班里程+路牌加油里程 | ||
| 68 | + @Transient | ||
| 69 | + private Double jylc_; | ||
| 62 | @Transient | 70 | @Transient |
| 63 | private String bglyh; | 71 | private String bglyh; |
| 64 | - | ||
| 65 | @Transient | 72 | @Transient |
| 66 | private String xlname; | 73 | private String xlname; |
| 67 | - | ||
| 68 | @Transient | 74 | @Transient |
| 69 | private String gsname; | 75 | private String gsname; |
| 70 | - | ||
| 71 | @Transient | 76 | @Transient |
| 72 | private String fgsname; | 77 | private String fgsname; |
| 73 | 78 | ||
| @@ -289,11 +294,12 @@ public class Ylb { | @@ -289,11 +294,12 @@ public class Ylb { | ||
| 289 | } | 294 | } |
| 290 | 295 | ||
| 291 | public String getBglyh() { | 296 | public String getBglyh() { |
| 292 | - if(this.getZlc()==0){ | 297 | + double zlcs=Arith.add(this.jylc==null?0.0:this.jylc, this.zlc); |
| 298 | + if(zlcs<=0){ | ||
| 293 | return "0"; | 299 | return "0"; |
| 294 | }else{ | 300 | }else{ |
| 295 | DecimalFormat df = new DecimalFormat("0.00"); | 301 | DecimalFormat df = new DecimalFormat("0.00"); |
| 296 | - return df.format(this.getYh()/this.getZlc()*100); | 302 | + return df.format(this.getYh()/zlcs*100); |
| 297 | } | 303 | } |
| 298 | } | 304 | } |
| 299 | 305 | ||
| @@ -358,6 +364,36 @@ public class Ylb { | @@ -358,6 +364,36 @@ public class Ylb { | ||
| 358 | public void setJname(String jname) { | 364 | public void setJname(String jname) { |
| 359 | this.jname = jname; | 365 | this.jname = jname; |
| 360 | } | 366 | } |
| 367 | + | ||
| 368 | + public Double getJylc() { | ||
| 369 | +// if(jylc==null){ | ||
| 370 | +// jylc=0.0; | ||
| 371 | +// } | ||
| 372 | + return jylc; | ||
| 373 | + } | ||
| 374 | + | ||
| 375 | + public void setJylc(Double jylc) { | ||
| 376 | + this.jylc = jylc; | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + public Double getZlc_() { | ||
| 380 | + zlc_=Arith.add(this.jylc==null?0.0:this.jylc, this.zlc); | ||
| 381 | + return zlc_; | ||
| 382 | + } | ||
| 383 | + | ||
| 384 | + public void setZlc_(Double zlc_) { | ||
| 385 | + this.zlc_ = zlc_; | ||
| 386 | + } | ||
| 387 | + | ||
| 388 | + public Double getJylc_() { | ||
| 389 | + jylc_=this.jylc==null?0.0:this.jylc; | ||
| 390 | + return jylc_; | ||
| 391 | + } | ||
| 392 | + | ||
| 393 | + public void setJylc_(Double jylc_) { | ||
| 394 | + this.jylc_ = jylc_; | ||
| 395 | + } | ||
| 396 | + | ||
| 361 | 397 | ||
| 362 | 398 | ||
| 363 | } | 399 | } |
src/main/java/com/bsth/repository/oil/YlbRepository.java
| @@ -25,6 +25,9 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | @@ -25,6 +25,9 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | ||
| 25 | + " xlbm like %?4% and nbbm like %?5% ",nativeQuery=true) | 25 | + " xlbm like %?4% and nbbm like %?5% ",nativeQuery=true) |
| 26 | List<Ylb> obtainYlbefore(String rq,String gsbm,String fgsbm,String xlbm,String nbbm); | 26 | List<Ylb> obtainYlbefore(String rq,String gsbm,String fgsbm,String xlbm,String nbbm); |
| 27 | 27 | ||
| 28 | + @Query(value="SELECT * FROM bsth_c_ylb where rq=?1 and xlbm =?2 and jsy=?3 and nbbm=?4 and lp=?5 ",nativeQuery=true) | ||
| 29 | + List<Ylb> selectYlbByLp(String rq,String xlbm,String jsy,String nbbm,String lp); | ||
| 30 | + | ||
| 28 | 31 | ||
| 29 | /** | 32 | /** |
| 30 | * 获取当天日期前的最大的日期中最大进出顺序的数据 | 33 | * 获取当天日期前的最大的日期中最大进出顺序的数据 |
| @@ -186,9 +189,10 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | @@ -186,9 +189,10 @@ public interface YlbRepository extends BaseRepository<Ylb, Integer>{ | ||
| 186 | " shyy = ?6," + | 189 | " shyy = ?6," + |
| 187 | " ns = ?7," + | 190 | " ns = ?7," + |
| 188 | " rylx = ?8," + | 191 | " rylx = ?8," + |
| 189 | - " yhlx = ?9"+ | 192 | + " yhlx = ?9,"+ |
| 193 | + " jylc =?10"+ | ||
| 190 | " WHERE id = ?1", nativeQuery=true) | 194 | " WHERE id = ?1", nativeQuery=true) |
| 191 | - public void ylbUpdate(Integer id,double czyl,double jzyl,double yh, double sh,String shyy,double ns,String rylx,int yhlx); | 195 | + public void ylbUpdate(Integer id,double czyl,double jzyl,double yh, double sh,String shyy,double ns,String rylx,int yhlx,double jylc); |
| 192 | 196 | ||
| 193 | 197 | ||
| 194 | } | 198 | } |
src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
| @@ -2558,7 +2558,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2558,7 +2558,7 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2558 | @Override | 2558 | @Override |
| 2559 | public Map<String, Object> exportWaybillMore(Map<String, Object> map) { | 2559 | public Map<String, Object> exportWaybillMore(Map<String, Object> map) { |
| 2560 | Map<String, Object> dMap=new HashMap<>(); | 2560 | Map<String, Object> dMap=new HashMap<>(); |
| 2561 | - dMap.put("dGroup", "oilType"); | 2561 | + dMap.put("dGroup_eq", "oilType"); |
| 2562 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); | 2562 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); |
| 2563 | while (it.hasNext()) { | 2563 | while (it.hasNext()) { |
| 2564 | Dictionary d=it.next(); | 2564 | Dictionary d=it.next(); |
| @@ -2589,6 +2589,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2589,6 +2589,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2589 | // file.mkdirs(); //创建 | 2589 | // file.mkdirs(); //创建 |
| 2590 | 2590 | ||
| 2591 | Map<String, List<Ylb>> ylbMap = new HashMap<String, List<Ylb>>(); | 2591 | Map<String, List<Ylb>> ylbMap = new HashMap<String, List<Ylb>>(); |
| 2592 | + Map<String, Double> ylbMapJylc = new HashMap<String, Double>(); | ||
| 2593 | + | ||
| 2592 | Map<String, List<Dlb>> dlbMap = new HashMap<String, List<Dlb>>(); | 2594 | Map<String, List<Dlb>> dlbMap = new HashMap<String, List<Dlb>>(); |
| 2593 | Map<String, List<Cars>> carMap = new HashMap<String, List<Cars>>(); | 2595 | Map<String, List<Cars>> carMap = new HashMap<String, List<Cars>>(); |
| 2594 | List<ScheduleRealInfo> lists_line=scheduleRealInfoRepository.scheduleByDateAndLineTjrb(line, date); | 2596 | List<ScheduleRealInfo> lists_line=scheduleRealInfoRepository.scheduleByDateAndLineTjrb(line, date); |
| @@ -2607,6 +2609,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2607,6 +2609,9 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2607 | } | 2609 | } |
| 2608 | 2610 | ||
| 2609 | for(Ylb ylb : queryYlbByRqXlbm){ | 2611 | for(Ylb ylb : queryYlbByRqXlbm){ |
| 2612 | + //获取线路所以 加油里程 | ||
| 2613 | + ylbMapJylc.put(ylb.getXlbm()+"-"+ylb.getJsy()+"-"+ylb.getNbbm()+"-"+(ylb.getLp()==null?"":ylb.getLp()), ylb.getJylc_()); | ||
| 2614 | + | ||
| 2610 | String key = ylb.getJsy() + ylb.getNbbm(); | 2615 | String key = ylb.getJsy() + ylb.getNbbm(); |
| 2611 | if(!ylbMap.containsKey(key)) | 2616 | if(!ylbMap.containsKey(key)) |
| 2612 | ylbMap.put(key, new ArrayList<Ylb>()); | 2617 | ylbMap.put(key, new ArrayList<Ylb>()); |
| @@ -2671,11 +2676,11 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2671,11 +2676,11 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2671 | String nbbm = s.getClZbh(); | 2676 | String nbbm = s.getClZbh(); |
| 2672 | 2677 | ||
| 2673 | int type = 0; | 2678 | int type = 0; |
| 2674 | - Double ccyl = 0.0; | ||
| 2675 | - Double jcyl = 0.0; | ||
| 2676 | - Double yh = 0.0; | ||
| 2677 | - Double jzl = 0.0; | ||
| 2678 | - Double zlc = 0.0; | 2679 | + double ccyl = 0.0; |
| 2680 | + double jcyl = 0.0; | ||
| 2681 | + double yh = 0.0; | ||
| 2682 | + double jzl = 0.0; | ||
| 2683 | + double zlc = 0.0; | ||
| 2679 | String rylx=""; | 2684 | String rylx=""; |
| 2680 | // List<Ylb> listYlb = ylbRepository.queryListYlb(fcrq, s.getClZbh(), s.getjGh(),xlbm); | 2685 | // List<Ylb> listYlb = ylbRepository.queryListYlb(fcrq, s.getClZbh(), s.getjGh(),xlbm); |
| 2681 | // List<Dlb> listDlb = dlbRepository.queryListDlb(fcrq, s.getClZbh(), s.getjGh(),xlbm); | 2686 | // List<Dlb> listDlb = dlbRepository.queryListDlb(fcrq, s.getClZbh(), s.getjGh(),xlbm); |
| @@ -2737,6 +2742,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2737,6 +2742,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2737 | } | 2742 | } |
| 2738 | } | 2743 | } |
| 2739 | } | 2744 | } |
| 2745 | + double jylc=ylbMapJylc.get(line+"-"+jGh+"-"+nbbm+"-"+lpName)==null?0.0:ylbMapJylc.get(line+"-"+jGh+"-"+nbbm+"-"+lpName); | ||
| 2746 | + Map.put("jylc", jylc); | ||
| 2740 | Map.put("rylx", "加注类别:"+rylx); | 2747 | Map.put("rylx", "加注类别:"+rylx); |
| 2741 | Map.put("jzl", jzl); | 2748 | Map.put("jzl", jzl); |
| 2742 | Map.put("yh", yh); | 2749 | Map.put("yh", yh); |
| @@ -2813,7 +2820,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | @@ -2813,7 +2820,8 @@ public class BusIntervalServiceImpl implements BusIntervalService { | ||
| 2813 | Map.put("yygl", yygl); | 2820 | Map.put("yygl", yygl); |
| 2814 | double ksgl=Arith.add(culateService.culateKsgl(scheduleRealInfos),culateService.culateJccgl(lists)); | 2821 | double ksgl=Arith.add(culateService.culateKsgl(scheduleRealInfos),culateService.culateJccgl(lists)); |
| 2815 | Map.put("ksgl",ksgl); | 2822 | Map.put("ksgl",ksgl); |
| 2816 | - Map.put("realMileage", Arith.add(yygl ,ksgl)); | 2823 | + Map.put("realMileage", Arith.add(yygl ,ksgl)); //排班计算里程 |
| 2824 | + Map.put("realMileage2", Arith.add(jylc,Arith.add(yygl ,ksgl)));//排班计算里程+加油里程 | ||
| 2817 | Map.put("jhbc", culateService.culateJhbc(scheduleRealInfos,"")); | 2825 | Map.put("jhbc", culateService.culateJhbc(scheduleRealInfos,"")); |
| 2818 | Map.put("cjbc", culateService.culateLbbc(scheduleRealInfos)); | 2826 | Map.put("cjbc", culateService.culateLbbc(scheduleRealInfos)); |
| 2819 | Map.put("ljbc", culateService.culateLjbc(lists, "")); | 2827 | Map.put("ljbc", culateService.culateLjbc(lists, "")); |
src/main/java/com/bsth/service/jdtest/impl/JdtestServiceImpl.java
| @@ -147,7 +147,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -147,7 +147,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 147 | } | 147 | } |
| 148 | }); | 148 | }); |
| 149 | Map<String, Object> dMap=new HashMap<>(); | 149 | Map<String, Object> dMap=new HashMap<>(); |
| 150 | - dMap.put("dGroup", "oilType"); | 150 | + dMap.put("dGroup_eq", "oilType"); |
| 151 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); | 151 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); |
| 152 | while (it.hasNext()) { | 152 | while (it.hasNext()) { |
| 153 | Dictionary d=it.next(); | 153 | Dictionary d=it.next(); |
| @@ -175,6 +175,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -175,6 +175,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 175 | }else{ | 175 | }else{ |
| 176 | lists=scheduleRealInfoRepository.scheduleByDateAndLineTjrb(xlbm, map.get("date").toString()); | 176 | lists=scheduleRealInfoRepository.scheduleByDateAndLineTjrb(xlbm, map.get("date").toString()); |
| 177 | } | 177 | } |
| 178 | + double jylc_z=0.0; | ||
| 178 | double jzyl_z=0.0; | 179 | double jzyl_z=0.0; |
| 179 | double czyl_z=0.0; | 180 | double czyl_z=0.0; |
| 180 | double jzl_z=0.0; | 181 | double jzl_z=0.0; |
| @@ -187,6 +188,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -187,6 +188,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 187 | double zlc_z=0.0; | 188 | double zlc_z=0.0; |
| 188 | double zlc_z2=0.0; | 189 | double zlc_z2=0.0; |
| 189 | 190 | ||
| 191 | + double jylc_line=0.0; | ||
| 190 | double jzyl_line=0.0; | 192 | double jzyl_line=0.0; |
| 191 | double czyl_line=0.0; | 193 | double czyl_line=0.0; |
| 192 | double jzl_line=0.0; | 194 | double jzl_line=0.0; |
| @@ -202,6 +204,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -202,6 +204,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 202 | sList =new ArrayList<ScheduleRealInfo>(); | 204 | sList =new ArrayList<ScheduleRealInfo>(); |
| 203 | jList =new ArrayList<ScheduleRealInfo>(); | 205 | jList =new ArrayList<ScheduleRealInfo>(); |
| 204 | Map<String, Object> m=list.get(i); | 206 | Map<String, Object> m=list.get(i); |
| 207 | + double jylc=0.0; | ||
| 205 | double jzyl=0.0; | 208 | double jzyl=0.0; |
| 206 | double czyl=0.0; | 209 | double czyl=0.0; |
| 207 | double jzl=0.0; | 210 | double jzl=0.0; |
| @@ -213,6 +216,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -213,6 +216,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 213 | czyl=t.getCzyl(); | 216 | czyl=t.getCzyl(); |
| 214 | jzl=t.getJzl(); | 217 | jzl=t.getJzl(); |
| 215 | yh=t.getYh(); | 218 | yh=t.getYh(); |
| 219 | + jylc=t.getJylc_(); | ||
| 216 | if(t.getRylx()!=null){ | 220 | if(t.getRylx()!=null){ |
| 217 | if(dMap.get(t.getRylx())==null){ | 221 | if(dMap.get(t.getRylx())==null){ |
| 218 | rylx=""; | 222 | rylx=""; |
| @@ -221,6 +225,8 @@ public class JdtestServiceImpl implements JdtestService { | @@ -221,6 +225,8 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 221 | } | 225 | } |
| 222 | } | 226 | } |
| 223 | } | 227 | } |
| 228 | + m.put("jylc",jylc); | ||
| 229 | + jylc_z=Arith.add(jylc, jylc_z); | ||
| 224 | m.put("jzyl",jzyl); | 230 | m.put("jzyl",jzyl); |
| 225 | jzyl_z=Arith.add(jzyl, jzyl_z); | 231 | jzyl_z=Arith.add(jzyl, jzyl_z); |
| 226 | m.put("czyl", czyl); | 232 | m.put("czyl", czyl); |
| @@ -265,7 +271,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -265,7 +271,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 265 | double jccgl=culateMileageService.culateJccgl(sList); | 271 | double jccgl=culateMileageService.culateJccgl(sList); |
| 266 | double kszlc=Arith.add(ksgl, jccgl); | 272 | double kszlc=Arith.add(ksgl, jccgl); |
| 267 | kszlc_z=Arith.add(kszlc, kszlc_z); | 273 | kszlc_z=Arith.add(kszlc, kszlc_z); |
| 268 | - double zlc=Arith.add(sjzlc, kszlc); | 274 | + double zlc=Arith.add(jylc, Arith.add(sjzlc, kszlc)); |
| 269 | double zlc2=Math.round(Math.round(zlc)); | 275 | double zlc2=Math.round(Math.round(zlc)); |
| 270 | zlc_z=Arith.add(zlc, zlc_z); | 276 | zlc_z=Arith.add(zlc, zlc_z); |
| 271 | zlc_z2=Arith.add(zlc2,zlc_z2); | 277 | zlc_z2=Arith.add(zlc2,zlc_z2); |
| @@ -280,6 +286,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -280,6 +286,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 280 | //线路小计 | 286 | //线路小计 |
| 281 | if (i < list.size() - 1) { | 287 | if (i < list.size() - 1) { |
| 282 | if ((list.get(i+1).get("xlBm").toString()).equals(list.get(i).get("xlBm").toString())) { | 288 | if ((list.get(i+1).get("xlBm").toString()).equals(list.get(i).get("xlBm").toString())) { |
| 289 | + jylc_line=Arith.add(jylc_line, jylc); | ||
| 283 | jzyl_line=Arith.add(jzyl_line, jzyl); | 290 | jzyl_line=Arith.add(jzyl_line, jzyl); |
| 284 | czyl_line=Arith.add(czyl_line, czyl); | 291 | czyl_line=Arith.add(czyl_line, czyl); |
| 285 | jzl_line=Arith.add(jzl_line, jzl); | 292 | jzl_line=Arith.add(jzl_line, jzl); |
| @@ -292,6 +299,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -292,6 +299,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 292 | zlc_line=Arith.add(zlc_line, zlc); | 299 | zlc_line=Arith.add(zlc_line, zlc); |
| 293 | zlc_line2=Arith.add(zlc_line2, zlc2); | 300 | zlc_line2=Arith.add(zlc_line2, zlc2); |
| 294 | } else { | 301 | } else { |
| 302 | + jylc_line=Arith.add(jylc_line, jylc); | ||
| 295 | jzyl_line=Arith.add(jzyl_line, jzyl); | 303 | jzyl_line=Arith.add(jzyl_line, jzyl); |
| 296 | czyl_line=Arith.add(czyl_line, czyl); | 304 | czyl_line=Arith.add(czyl_line, czyl); |
| 297 | jzl_line=Arith.add(jzl_line, jzl); | 305 | jzl_line=Arith.add(jzl_line, jzl); |
| @@ -315,6 +323,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -315,6 +323,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 315 | mmm.put("sjbc", sjbc_line); | 323 | mmm.put("sjbc", sjbc_line); |
| 316 | mmm.put("sjzlc", sjzlc_line); | 324 | mmm.put("sjzlc", sjzlc_line); |
| 317 | mmm.put("kszlc",kszlc_line); | 325 | mmm.put("kszlc",kszlc_line); |
| 326 | + mmm.put("jylc", jylc_line); | ||
| 318 | mmm.put("zlc", zlc_line); | 327 | mmm.put("zlc", zlc_line); |
| 319 | mmm.put("zlc2", zlc_line2); | 328 | mmm.put("zlc2", zlc_line2); |
| 320 | mmm.put("jzyl",jzyl_line); | 329 | mmm.put("jzyl",jzyl_line); |
| @@ -324,6 +333,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -324,6 +333,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 324 | mmm.put("rylx", ""); | 333 | mmm.put("rylx", ""); |
| 325 | mmm.put("dh",""); | 334 | mmm.put("dh",""); |
| 326 | listAll.add(mmm); | 335 | listAll.add(mmm); |
| 336 | + jylc_line=0.0; | ||
| 327 | jzyl_line=0.0; | 337 | jzyl_line=0.0; |
| 328 | czyl_line=0.0; | 338 | czyl_line=0.0; |
| 329 | jzl_line=0.0; | 339 | jzl_line=0.0; |
| @@ -338,6 +348,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -338,6 +348,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 338 | } | 348 | } |
| 339 | } else { | 349 | } else { |
| 340 | if ((list.get(i).get("xlBm").toString()).equals(list.get(i - 1).get("xlBm").toString())) { | 350 | if ((list.get(i).get("xlBm").toString()).equals(list.get(i - 1).get("xlBm").toString())) { |
| 351 | + jylc_line=Arith.add(jylc_line, jylc); | ||
| 341 | jzyl_line=Arith.add(jzyl_line, jzyl); | 352 | jzyl_line=Arith.add(jzyl_line, jzyl); |
| 342 | czyl_line=Arith.add(czyl_line, czyl); | 353 | czyl_line=Arith.add(czyl_line, czyl); |
| 343 | jzl_line=Arith.add(jzl_line, jzl); | 354 | jzl_line=Arith.add(jzl_line, jzl); |
| @@ -360,6 +371,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -360,6 +371,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 360 | mmm.put("sjbc", sjbc_line); | 371 | mmm.put("sjbc", sjbc_line); |
| 361 | mmm.put("sjzlc", sjzlc_line); | 372 | mmm.put("sjzlc", sjzlc_line); |
| 362 | mmm.put("kszlc",kszlc_line); | 373 | mmm.put("kszlc",kszlc_line); |
| 374 | + mmm.put("jylc", jylc_line); | ||
| 363 | mmm.put("zlc", zlc_line); | 375 | mmm.put("zlc", zlc_line); |
| 364 | mmm.put("zlc2", zlc_line2); | 376 | mmm.put("zlc2", zlc_line2); |
| 365 | mmm.put("jzyl",jzyl_line); | 377 | mmm.put("jzyl",jzyl_line); |
| @@ -382,6 +394,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -382,6 +394,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 382 | mmm.put("sjbc", sjbc); | 394 | mmm.put("sjbc", sjbc); |
| 383 | mmm.put("sjzlc", sjzlc); | 395 | mmm.put("sjzlc", sjzlc); |
| 384 | mmm.put("kszlc",kszlc); | 396 | mmm.put("kszlc",kszlc); |
| 397 | + mmm.put("jylc", jylc_line); | ||
| 385 | mmm.put("zlc", zlc); | 398 | mmm.put("zlc", zlc); |
| 386 | mmm.put("zlc2", zlc2); | 399 | mmm.put("zlc2", zlc2); |
| 387 | mmm.put("jzyl",jzyl); | 400 | mmm.put("jzyl",jzyl); |
| @@ -405,6 +418,7 @@ public class JdtestServiceImpl implements JdtestService { | @@ -405,6 +418,7 @@ public class JdtestServiceImpl implements JdtestService { | ||
| 405 | mmp.put("sjbc", sjbc_z); | 418 | mmp.put("sjbc", sjbc_z); |
| 406 | mmp.put("sjzlc", sjzlc_z); | 419 | mmp.put("sjzlc", sjzlc_z); |
| 407 | mmp.put("kszlc",kszlc_z); | 420 | mmp.put("kszlc",kszlc_z); |
| 421 | + mmp.put("jylc", jylc_z); | ||
| 408 | mmp.put("zlc", zlc_z); | 422 | mmp.put("zlc", zlc_z); |
| 409 | mmp.put("zlc2", zlc_z2); | 423 | mmp.put("zlc2", zlc_z2); |
| 410 | mmp.put("jzyl",jzyl_z); | 424 | mmp.put("jzyl",jzyl_z); |
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
| @@ -38,7 +38,9 @@ import com.bsth.entity.oil.Dlb; | @@ -38,7 +38,9 @@ import com.bsth.entity.oil.Dlb; | ||
| 38 | import com.bsth.entity.oil.Nylog; | 38 | import com.bsth.entity.oil.Nylog; |
| 39 | import com.bsth.entity.oil.Ylb; | 39 | import com.bsth.entity.oil.Ylb; |
| 40 | import com.bsth.entity.oil.Ylxxb; | 40 | import com.bsth.entity.oil.Ylxxb; |
| 41 | +import com.bsth.entity.schedule.GuideboardInfo; | ||
| 41 | import com.bsth.entity.search.CustomerSpecs; | 42 | import com.bsth.entity.search.CustomerSpecs; |
| 43 | +import com.bsth.entity.sys.Dictionary; | ||
| 42 | import com.bsth.entity.sys.SysUser; | 44 | import com.bsth.entity.sys.SysUser; |
| 43 | import com.bsth.repository.CarsRepository; | 45 | import com.bsth.repository.CarsRepository; |
| 44 | import com.bsth.repository.LineRepository; | 46 | import com.bsth.repository.LineRepository; |
| @@ -47,6 +49,7 @@ import com.bsth.repository.oil.DlbRepository; | @@ -47,6 +49,7 @@ import com.bsth.repository.oil.DlbRepository; | ||
| 47 | import com.bsth.repository.oil.NylogRepository; | 49 | import com.bsth.repository.oil.NylogRepository; |
| 48 | import com.bsth.repository.oil.YlbRepository; | 50 | import com.bsth.repository.oil.YlbRepository; |
| 49 | import com.bsth.repository.oil.YlxxbRepository; | 51 | import com.bsth.repository.oil.YlxxbRepository; |
| 52 | +import com.bsth.repository.schedule.GuideboardInfoRepository; | ||
| 50 | import com.bsth.security.util.SecurityUtils; | 53 | import com.bsth.security.util.SecurityUtils; |
| 51 | import com.bsth.service.impl.BaseServiceImpl; | 54 | import com.bsth.service.impl.BaseServiceImpl; |
| 52 | import com.bsth.service.oil.DlbService; | 55 | import com.bsth.service.oil.DlbService; |
| @@ -67,26 +70,20 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -67,26 +70,20 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 67 | NylogRepository nylogRepository; | 70 | NylogRepository nylogRepository; |
| 68 | @Autowired | 71 | @Autowired |
| 69 | YlxxbRepository ylxxbRepository; | 72 | YlxxbRepository ylxxbRepository; |
| 70 | - | ||
| 71 | @Autowired | 73 | @Autowired |
| 72 | DlbService dlbService; | 74 | DlbService dlbService; |
| 73 | - | ||
| 74 | @Autowired | 75 | @Autowired |
| 75 | DlbRepository dlbRepository; | 76 | DlbRepository dlbRepository; |
| 76 | - | ||
| 77 | @Autowired | 77 | @Autowired |
| 78 | CylRepository cylRepository; | 78 | CylRepository cylRepository; |
| 79 | - | ||
| 80 | @Autowired | 79 | @Autowired |
| 81 | CarsRepository carsRepository; | 80 | CarsRepository carsRepository; |
| 82 | - | ||
| 83 | - | ||
| 84 | @Autowired | 81 | @Autowired |
| 85 | LineRepository lineRepository; | 82 | LineRepository lineRepository; |
| 86 | - | ||
| 87 | @Autowired | 83 | @Autowired |
| 88 | ScheduleRealInfoService scheduleRealInfoService; | 84 | ScheduleRealInfoService scheduleRealInfoService; |
| 89 | - | 85 | + @Autowired |
| 86 | + GuideboardInfoRepository guideboardInfoRepository; | ||
| 90 | @Autowired | 87 | @Autowired |
| 91 | JdbcTemplate jdbcTemplate; | 88 | JdbcTemplate jdbcTemplate; |
| 92 | 89 | ||
| @@ -103,6 +100,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -103,6 +100,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 103 | public String obtainDsq() throws Exception{ | 100 | public String obtainDsq() throws Exception{ |
| 104 | String result = "failure"; | 101 | String result = "failure"; |
| 105 | try { | 102 | try { |
| 103 | + | ||
| 106 | List<Ylb> addList = new ArrayList<Ylb>(); | 104 | List<Ylb> addList = new ArrayList<Ylb>(); |
| 107 | String type = ""; | 105 | String type = ""; |
| 108 | List<Cars> carsList=carsRepository.findCars(); | 106 | List<Cars> carsList=carsRepository.findCars(); |
| @@ -134,7 +132,12 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -134,7 +132,12 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 134 | List<Cyl> clyList=cylRepository.obtainCyl("",""); | 132 | List<Cyl> clyList=cylRepository.obtainCyl("",""); |
| 135 | //从排班表中计算出行驶的总里程 | 133 | //从排班表中计算出行驶的总里程 |
| 136 | List<Map<String,Object>> listpb=scheduleRealInfoService.yesterdayDataList("", rq, "", "", "", ""); | 134 | List<Map<String,Object>> listpb=scheduleRealInfoService.yesterdayDataList("", rq, "", "", "", ""); |
| 137 | - | 135 | + Iterator<GuideboardInfo> it=guideboardInfoRepository.findAll().iterator(); |
| 136 | + Map<String, Double> ginfoMap=new HashMap<>(); | ||
| 137 | + while (it.hasNext()) { | ||
| 138 | + GuideboardInfo ginfo=it.next(); | ||
| 139 | + ginfoMap.put(ginfo.getXl().getLineCode()+"-"+ginfo.getLpName(), ginfo.getJygl()==null?0.0: ginfo.getJygl()); | ||
| 140 | + } | ||
| 138 | for(int x=0;x<listpb.size();x++){ | 141 | for(int x=0;x<listpb.size();x++){ |
| 139 | boolean sfdc=true; | 142 | boolean sfdc=true; |
| 140 | Map<String, Object> map=listpb.get(x); | 143 | Map<String, Object> map=listpb.get(x); |
| @@ -207,6 +210,10 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -207,6 +210,10 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 207 | if(type.equals("update")){ | 210 | if(type.equals("update")){ |
| 208 | repository.save(t); | 211 | repository.save(t); |
| 209 | }else{ | 212 | }else{ |
| 213 | + if(t.getJylc()==null){ | ||
| 214 | + t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); | ||
| 215 | + } | ||
| 216 | + t.setJylc(0.0); | ||
| 210 | addList.add(t); | 217 | addList.add(t); |
| 211 | } | 218 | } |
| 212 | 219 | ||
| @@ -585,6 +592,12 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -585,6 +592,12 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 585 | public Map<String, Object> obtain(Map<String, Object> map2) throws Exception{ | 592 | public Map<String, Object> obtain(Map<String, Object> map2) throws Exception{ |
| 586 | Map<String, Object> newMap = new HashMap<String, Object>(); | 593 | Map<String, Object> newMap = new HashMap<String, Object>(); |
| 587 | try { | 594 | try { |
| 595 | + Iterator<GuideboardInfo> it=guideboardInfoRepository.findAll().iterator(); | ||
| 596 | + Map<String, Double> ginfoMap=new HashMap<>(); | ||
| 597 | + while (it.hasNext()) { | ||
| 598 | + GuideboardInfo ginfo=it.next(); | ||
| 599 | + ginfoMap.put(ginfo.getXl().getLineCode()+"-"+ginfo.getLpName(), ginfo.getJygl()); | ||
| 600 | + } | ||
| 588 | Date date=new Date(); | 601 | Date date=new Date(); |
| 589 | List<Cars> carsList = carsRepository.findCars(); | 602 | List<Cars> carsList = carsRepository.findCars(); |
| 590 | Map<String, Boolean> carsMap = new HashMap<String, Boolean>(); | 603 | Map<String, Boolean> carsMap = new HashMap<String, Boolean>(); |
| @@ -842,8 +855,14 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -842,8 +855,14 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 842 | if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ | 855 | if(!(t.getSsgsdm().equals("") || t.getFgsdm().equals(""))){ |
| 843 | if(type.equals("add")){ | 856 | if(type.equals("add")){ |
| 844 | t.setCreatetime(date); | 857 | t.setCreatetime(date); |
| 858 | + if(t.getJylc()==null){ | ||
| 859 | + t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); | ||
| 860 | + } | ||
| 845 | addList.add(t); | 861 | addList.add(t); |
| 846 | }else{ | 862 | }else{ |
| 863 | + if(t.getJylc()==null){ | ||
| 864 | + t.setJylc(ginfoMap.get(t.getXlbm()+"-"+t.getLp())); | ||
| 865 | + } | ||
| 847 | t.setUpdatetime(date); | 866 | t.setUpdatetime(date); |
| 848 | updateList.add(t); | 867 | updateList.add(t); |
| 849 | } | 868 | } |
| @@ -1693,7 +1712,6 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -1693,7 +1712,6 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 1693 | JSONArray jsonArray=JSONArray.parseArray(json); | 1712 | JSONArray jsonArray=JSONArray.parseArray(json); |
| 1694 | JSONObject jsonObject; | 1713 | JSONObject jsonObject; |
| 1695 | // 获取车辆存油信息 | 1714 | // 获取车辆存油信息 |
| 1696 | - List<Cyl> cylList = cylRepository.obtainCyl("",""); | ||
| 1697 | for (int i = 0; i < jsonArray.size(); i++) { | 1715 | for (int i = 0; i < jsonArray.size(); i++) { |
| 1698 | // Ylb t=new Ylb(); | 1716 | // Ylb t=new Ylb(); |
| 1699 | jsonObject=jsonArray.getJSONObject(i); | 1717 | jsonObject=jsonArray.getJSONObject(i); |
| @@ -1703,6 +1721,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -1703,6 +1721,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 1703 | double sh =jsonObject.getDoubleValue("sh"); | 1721 | double sh =jsonObject.getDoubleValue("sh"); |
| 1704 | String shyy =jsonObject.getString("shyy"); | 1722 | String shyy =jsonObject.getString("shyy"); |
| 1705 | double ns = jsonObject.getDoubleValue("ns"); | 1723 | double ns = jsonObject.getDoubleValue("ns"); |
| 1724 | + double jylc=jsonObject.getDoubleValue("jylc"); | ||
| 1706 | String rylx =jsonObject.getString("rylx"); | 1725 | String rylx =jsonObject.getString("rylx"); |
| 1707 | int yhlx =jsonObject.getIntValue("yhlx"); | 1726 | int yhlx =jsonObject.getIntValue("yhlx"); |
| 1708 | Integer id =jsonObject.getInteger("id"); | 1727 | Integer id =jsonObject.getInteger("id"); |
| @@ -1712,7 +1731,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -1712,7 +1731,7 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 1712 | if(yh<0){ | 1731 | if(yh<0){ |
| 1713 | yh=0.0; | 1732 | yh=0.0; |
| 1714 | } | 1733 | } |
| 1715 | - repository.ylbUpdate(id, czyl, jzyl, yh, sh, shyy, ns, rylx,yhlx); | 1734 | + repository.ylbUpdate(id, czyl, jzyl, yh, sh, shyy, ns, rylx,yhlx,jylc); |
| 1716 | } | 1735 | } |
| 1717 | // List<Map<String, Object>> list=(List<Map<String, Object>>) map.get("ylbList"); | 1736 | // List<Map<String, Object>> list=(List<Map<String, Object>>) map.get("ylbList"); |
| 1718 | SysUser user = SecurityUtils.getCurrentUser(); | 1737 | SysUser user = SecurityUtils.getCurrentUser(); |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| @@ -990,12 +990,18 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -990,12 +990,18 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 990 | } | 990 | } |
| 991 | } | 991 | } |
| 992 | } | 992 | } |
| 993 | + List<Ylb> listYlb=ylbRepository.selectYlbByLp(date, line, jGh, clZbh, lpName); | ||
| 994 | + Double jylc=0.0; | ||
| 995 | + for (int i = 0; i < listYlb.size(); i++) { | ||
| 996 | + Ylb y=listYlb.get(i); | ||
| 997 | + jylc=y.getJylc_(); | ||
| 998 | + } | ||
| 993 | DecimalFormat format = new DecimalFormat("0.00"); | 999 | DecimalFormat format = new DecimalFormat("0.00"); |
| 994 | // int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); | 1000 | // int cjbc = scheduleRealInfoRepository.findCjbc(jName, clZbh, lpName); |
| 995 | // int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); | 1001 | // int ljbc = scheduleRealInfoRepository.findLjbc(jName, clZbh, lpName); |
| 996 | //计算里程和班次数,并放入Map里 | 1002 | //计算里程和班次数,并放入Map里 |
| 997 | Map<String, Object> map = this.MapById(scheduleRealInfos.get(0).getId()); | 1003 | Map<String, Object> map = this.MapById(scheduleRealInfos.get(0).getId()); |
| 998 | - | 1004 | + map.put("jylc", jylc); |
| 999 | map.put("jhlc", Arith.add(culateMieageService.culateJhgl(scheduleRealInfos), culateMieageService.culateJhJccgl(scheduleRealInfos))); | 1005 | map.put("jhlc", Arith.add(culateMieageService.culateJhgl(scheduleRealInfos), culateMieageService.culateJhJccgl(scheduleRealInfos))); |
| 1000 | map.put("remMileage", culateMieageService.culateLbgl(scheduleRealInfos)); | 1006 | map.put("remMileage", culateMieageService.culateLbgl(scheduleRealInfos)); |
| 1001 | map.put("addMileage", culateMieageService.culateLjgl(lists)); | 1007 | map.put("addMileage", culateMieageService.culateLjgl(lists)); |
| @@ -1003,7 +1009,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1003,7 +1009,8 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1003 | map.put("yygl", yygl); | 1009 | map.put("yygl", yygl); |
| 1004 | double ksgl = Arith.add(culateMieageService.culateKsgl(scheduleRealInfos), culateMieageService.culateJccgl(lists)); | 1010 | double ksgl = Arith.add(culateMieageService.culateKsgl(scheduleRealInfos), culateMieageService.culateJccgl(lists)); |
| 1005 | map.put("ksgl", ksgl); | 1011 | map.put("ksgl", ksgl); |
| 1006 | - map.put("realMileage", Arith.add(yygl, ksgl)); | 1012 | + map.put("realMileage", Arith.add(yygl, ksgl));//排班表计算里程 |
| 1013 | + map.put("realMileage2", Arith.add(jylc, Arith.add(yygl, ksgl)));//排班表计算里程+加油里程 | ||
| 1007 | map.put("jhbc", culateMieageService.culateJhbc(scheduleRealInfos, "")); | 1014 | map.put("jhbc", culateMieageService.culateJhbc(scheduleRealInfos, "")); |
| 1008 | map.put("cjbc", culateMieageService.culateLbbc(scheduleRealInfos)); | 1015 | map.put("cjbc", culateMieageService.culateLbbc(scheduleRealInfos)); |
| 1009 | map.put("ljbc", culateMieageService.culateLjbc(lists, "")); | 1016 | map.put("ljbc", culateMieageService.culateLjbc(lists, "")); |
| @@ -1950,6 +1957,13 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1950,6 +1957,13 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1950 | } | 1957 | } |
| 1951 | } | 1958 | } |
| 1952 | } | 1959 | } |
| 1960 | + List<Ylb> listYlb=ylbRepository.selectYlbByLp(date, line, jGh, clZbh, lpName); | ||
| 1961 | + Double jylc=0.0; | ||
| 1962 | + for (int i = 0; i < listYlb.size(); i++) { | ||
| 1963 | + Ylb y=listYlb.get(i); | ||
| 1964 | + jylc=y.getJylc_(); | ||
| 1965 | + } | ||
| 1966 | + map.put("jylc", jylc); | ||
| 1953 | map.put("jhbc", culateService.culateJhbc(list, ""));//计划班次 | 1967 | map.put("jhbc", culateService.culateJhbc(list, ""));//计划班次 |
| 1954 | map.put("jhlc", Arith.add(culateService.culateJhgl(list), | 1968 | map.put("jhlc", Arith.add(culateService.culateJhgl(list), |
| 1955 | culateService.culateJhJccgl(list))); //计划总里程 | 1969 | culateService.culateJhJccgl(list))); //计划总里程 |
| @@ -1963,7 +1977,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -1963,7 +1977,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 1963 | double jccgl = culateService.culateJccgl(lists);//空驶班次公里 | 1977 | double jccgl = culateService.culateJccgl(lists);//空驶班次公里 |
| 1964 | map.put("ksgl", ksgl);//空驶公里 | 1978 | map.put("ksgl", ksgl);//空驶公里 |
| 1965 | double sjgl = culateService.culateSjgl(lists);//实际营运公里 | 1979 | double sjgl = culateService.culateSjgl(lists);//实际营运公里 |
| 1966 | - map.put("realMileage", Arith.add(Arith.add(ksgl, jccgl), Arith.add(sjgl, ljgl)));//总公里 | 1980 | + double zlc=Arith.add(Arith.add(ksgl, jccgl), Arith.add(sjgl, ljgl)); |
| 1981 | + map.put("realMileage",zlc );//排班总公里 | ||
| 1982 | + map.put("realMileage2",Arith.add(zlc, jylc) );//排班总公里+加油里程 | ||
| 1967 | map.put("zkslc", Arith.add(ksgl, jccgl)); | 1983 | map.put("zkslc", Arith.add(ksgl, jccgl)); |
| 1968 | map.put("jcclc", jccgl); | 1984 | map.put("jcclc", jccgl); |
| 1969 | map.put("yygl", Arith.add(sjgl, ljgl)); //总营运公里 | 1985 | map.put("yygl", Arith.add(sjgl, ljgl)); //总营运公里 |
| @@ -4576,7 +4592,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -4576,7 +4592,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 4576 | public Map<String, Object> MapById(Long id) { | 4592 | public Map<String, Object> MapById(Long id) { |
| 4577 | // TODO Auto-generated method stub | 4593 | // TODO Auto-generated method stub |
| 4578 | Map<String, Object> dMap=new HashMap<>(); | 4594 | Map<String, Object> dMap=new HashMap<>(); |
| 4579 | - dMap.put("dGroup", "oilType"); | 4595 | + dMap.put("dGroup_eq", "oilType"); |
| 4580 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); | 4596 | Iterator<Dictionary> it= dictionaryService.list(dMap).iterator(); |
| 4581 | while (it.hasNext()) { | 4597 | while (it.hasNext()) { |
| 4582 | Dictionary d=it.next(); | 4598 | Dictionary d=it.next(); |
| @@ -4587,7 +4603,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -4587,7 +4603,6 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 4587 | ScheduleRealInfo s = scheduleRealInfoRepository.scheduleById(id); | 4603 | ScheduleRealInfo s = scheduleRealInfoRepository.scheduleById(id); |
| 4588 | String xlbm = s.getXlBm(); | 4604 | String xlbm = s.getXlBm(); |
| 4589 | String fcrq = s.getScheduleDateStr(); | 4605 | String fcrq = s.getScheduleDateStr(); |
| 4590 | - | ||
| 4591 | int type = 2; | 4606 | int type = 2; |
| 4592 | Double ccyl = 0.0; | 4607 | Double ccyl = 0.0; |
| 4593 | Double jcyl = 0.0; | 4608 | Double jcyl = 0.0; |
src/main/resources/static/pages/forms/mould/jd_daily.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/list.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/waybill_minhang.xls
No preview for this file type
src/main/resources/static/pages/forms/statement/jd_daily.html
| @@ -79,6 +79,7 @@ | @@ -79,6 +79,7 @@ | ||
| 79 | <td><label >实际班次</label></td> | 79 | <td><label >实际班次</label></td> |
| 80 | <td><label >实际营运里程</label></td> | 80 | <td><label >实际营运里程</label></td> |
| 81 | <td><label >空驶里程</label></td> | 81 | <td><label >空驶里程</label></td> |
| 82 | + <td><label >加油里程</label></td> | ||
| 82 | <td><label >总里程</label></td> | 83 | <td><label >总里程</label></td> |
| 83 | <td><label >总里程(四舍五入)</label></td> | 84 | <td><label >总里程(四舍五入)</label></td> |
| 84 | <td><label >出场存油</label></td> | 85 | <td><label >出场存油</label></td> |
| @@ -258,6 +259,7 @@ | @@ -258,6 +259,7 @@ | ||
| 258 | <td>{{obj.sjbc}}</td> | 259 | <td>{{obj.sjbc}}</td> |
| 259 | <td>{{obj.sjzlc}}</td> | 260 | <td>{{obj.sjzlc}}</td> |
| 260 | <td>{{obj.kszlc}}</td> | 261 | <td>{{obj.kszlc}}</td> |
| 262 | + <td>{{obj.jylc}}</td> | ||
| 261 | <td>{{obj.zlc}}</td> | 263 | <td>{{obj.zlc}}</td> |
| 262 | <td>{{obj.zlc2}}</td> | 264 | <td>{{obj.zlc2}}</td> |
| 263 | <td>{{obj.czyl}}</td> | 265 | <td>{{obj.czyl}}</td> |
src/main/resources/static/pages/forms/statement/waybill.html
| @@ -526,7 +526,7 @@ | @@ -526,7 +526,7 @@ | ||
| 526 | {{obj.jhlc}} | 526 | {{obj.jhlc}} |
| 527 | {{/if}} | 527 | {{/if}} |
| 528 | </td> | 528 | </td> |
| 529 | - <td > | 529 | + <td> |
| 530 | {{obj.remarks}} | 530 | {{obj.remarks}} |
| 531 | </td> | 531 | </td> |
| 532 | </tr> | 532 | </tr> |
| @@ -561,10 +561,10 @@ | @@ -561,10 +561,10 @@ | ||
| 561 | <tr> | 561 | <tr> |
| 562 | <td colspan="2">空驶公里</td> | 562 | <td colspan="2">空驶公里</td> |
| 563 | <td>{{zkslc}}</td> | 563 | <td>{{zkslc}}</td> |
| 564 | + <td colspan="2">加油里程</td> | ||
| 565 | + <td>{{jylc}}</td> | ||
| 564 | <td colspan="2">总公里</td> | 566 | <td colspan="2">总公里</td> |
| 565 | - <td>{{realMileage}}</td> | ||
| 566 | - <td colspan="2"></td> | ||
| 567 | - <td></td> | 567 | + <td>{{realMileage2}}</td> |
| 568 | <td colspan="3"></td> | 568 | <td colspan="3"></td> |
| 569 | <td colspan="2"></td> | 569 | <td colspan="2"></td> |
| 570 | </tr> | 570 | </tr> |
src/main/resources/static/pages/oil/list_ph.html
| @@ -182,21 +182,23 @@ | @@ -182,21 +182,23 @@ | ||
| 182 | <input type="checkbox" id="selectAll" class="group-checkable" > | 182 | <input type="checkbox" id="selectAll" class="group-checkable" > |
| 183 | </td> | 183 | </td> |
| 184 | <td width="40px">序号</td> | 184 | <td width="40px">序号</td> |
| 185 | - <td width="8%">日期</td> | ||
| 186 | - <td width="5%">公司</td> | ||
| 187 | - <td width="8%">线路</td> | ||
| 188 | - <td width="5%">自编号</td> | ||
| 189 | - <td width="7%">驾驶员</td> | ||
| 190 | - <td width="4%">加油量</td> | ||
| 191 | - <td width="5%">出场存油</td> | ||
| 192 | - <td width="5%">进场存油</td> | ||
| 193 | - <td width="5%">油耗</td> | ||
| 194 | - <td width="8%">燃油类型</td> | ||
| 195 | - <td width="4%">尿素</td> | ||
| 196 | - <td width="8%">耗损原因</td> | ||
| 197 | - <td width="5%">耗损油量</td> | ||
| 198 | - <td width="5%">当日总里程</td> | ||
| 199 | - <td width="5%">数据类型</td> | 185 | + <td >日期</td> |
| 186 | + <td >公司</td> | ||
| 187 | + <td >线路</td> | ||
| 188 | + <td >路牌</td> | ||
| 189 | + <td >自编号</td> | ||
| 190 | + <td >驾驶员</td> | ||
| 191 | + <td >加油量</td> | ||
| 192 | + <td >出场存油</td> | ||
| 193 | + <td >进场存油</td> | ||
| 194 | + <td >油耗</td> | ||
| 195 | + <td >燃油类型</td> | ||
| 196 | + <td >尿素</td> | ||
| 197 | + <td >耗损原因</td> | ||
| 198 | + <td >耗损油量</td> | ||
| 199 | + <td >加油里程</td> | ||
| 200 | + <td >当日总里程</td> | ||
| 201 | + <td >数据类型</td> | ||
| 200 | <td >百公里油耗</td> | 202 | <td >百公里油耗</td> |
| 201 | </tr> | 203 | </tr> |
| 202 | </thead> | 204 | </thead> |
| @@ -236,13 +238,13 @@ | @@ -236,13 +238,13 @@ | ||
| 236 | <input type="checkbox" name="id" class="group-checkable icheck" data-id="{{obj.id}}"> | 238 | <input type="checkbox" name="id" class="group-checkable icheck" data-id="{{obj.id}}"> |
| 237 | </td> | 239 | </td> |
| 238 | <td width="40px">{{i+1}}</td> | 240 | <td width="40px">{{i+1}}</td> |
| 239 | - <td width="8%"> | 241 | + <td > |
| 240 | {{obj.rq}} | 242 | {{obj.rq}} |
| 241 | </td> | 243 | </td> |
| 242 | - <td width="5%"> | 244 | + <td > |
| 243 | {{obj.fgsname}} | 245 | {{obj.fgsname}} |
| 244 | </td> | 246 | </td> |
| 245 | - <td width="8%"> | 247 | + <td > |
| 246 | {{if obj.linename=='' || obj.linename==null}} | 248 | {{if obj.linename=='' || obj.linename==null}} |
| 247 | {{obj.xlname}} | 249 | {{obj.xlname}} |
| 248 | {{else}} | 250 | {{else}} |
| @@ -250,11 +252,14 @@ | @@ -250,11 +252,14 @@ | ||
| 250 | {{/if}} | 252 | {{/if}} |
| 251 | 253 | ||
| 252 | </td> | 254 | </td> |
| 253 | - <td width="5%"> | 255 | + <td> |
| 256 | + {{obj.lp}} | ||
| 257 | + </td> | ||
| 258 | + <td> | ||
| 254 | <lable data-id="{{obj.id}}" class="in_carpark_nbbm">{{obj.nbbm}}</lable> | 259 | <lable data-id="{{obj.id}}" class="in_carpark_nbbm">{{obj.nbbm}}</lable> |
| 255 | 260 | ||
| 256 | </td> | 261 | </td> |
| 257 | - <td width="7%"> | 262 | + <td > |
| 258 | {{if obj.jsy=='' || obj.jsy==null }} | 263 | {{if obj.jsy=='' || obj.jsy==null }} |
| 259 | <input data-id="{{obj.id}}" style=" width:100%" type="text" class="in_carpark_jsy" ></input> | 264 | <input data-id="{{obj.id}}" style=" width:100%" type="text" class="in_carpark_jsy" ></input> |
| 260 | <button class="btn btn-sm blue btn-jsyUpdate" style=" width:100%" data-id="{{obj.id}}">填写工号</button> | 265 | <button class="btn btn-sm blue btn-jsyUpdate" style=" width:100%" data-id="{{obj.id}}">填写工号</button> |
| @@ -267,28 +272,28 @@ | @@ -267,28 +272,28 @@ | ||
| 267 | {{/if}} | 272 | {{/if}} |
| 268 | 273 | ||
| 269 | </td> | 274 | </td> |
| 270 | - <td width="4%"> | 275 | + <td> |
| 271 | <lable data-id="{{obj.id}}" class="in_carpark_jzl"> {{obj.jzl}}</lable> | 276 | <lable data-id="{{obj.id}}" class="in_carpark_jzl"> {{obj.jzl}}</lable> |
| 272 | </td> | 277 | </td> |
| 273 | - <td width="5%"> | 278 | + <td > |
| 274 | 279 | ||
| 275 | <input data-id="{{obj.id}}" id="{{(i+1)}}_1" href="javascript:;" class="in_carpark_czyl yl_sxzy" | 280 | <input data-id="{{obj.id}}" id="{{(i+1)}}_1" href="javascript:;" class="in_carpark_czyl yl_sxzy" |
| 276 | type="text" value=" {{obj.czyl}}" style=" width:100%" | 281 | type="text" value=" {{obj.czyl}}" style=" width:100%" |
| 277 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" | 282 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" |
| 278 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> | 283 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> |
| 279 | </td> | 284 | </td> |
| 280 | - <td width="5%"> | 285 | + <td > |
| 281 | <input data-id="{{obj.id}}" id="{{(i+1)}}_2" href="javascript:;" class="in_carpark_jzyl yl_sxzy" | 286 | <input data-id="{{obj.id}}" id="{{(i+1)}}_2" href="javascript:;" class="in_carpark_jzyl yl_sxzy" |
| 282 | type="text" value=" {{obj.jzyl}}" style=" width:100%" | 287 | type="text" value=" {{obj.jzyl}}" style=" width:100%" |
| 283 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" | 288 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" |
| 284 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> | 289 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> |
| 285 | </td> | 290 | </td> |
| 286 | - <td width="5%"> | 291 | + <td> |
| 287 | 292 | ||
| 288 | <input data-id="{{obj.id}}" id="{{(i+1)}}_3" href="javascript:;" class="in_carpark_yh yl_sxzy" | 293 | <input data-id="{{obj.id}}" id="{{(i+1)}}_3" href="javascript:;" class="in_carpark_yh yl_sxzy" |
| 289 | type="text" value="{{obj.yh}}" style=" width:100%" readOnly="true" /> | 294 | type="text" value="{{obj.yh}}" style=" width:100%" readOnly="true" /> |
| 290 | </td> | 295 | </td> |
| 291 | - <td width="8%"> | 296 | + <td > |
| 292 | <select data-id="{{obj.id}}" class="in_carpark_rylx" style=" width:100%" > | 297 | <select data-id="{{obj.id}}" class="in_carpark_rylx" style=" width:100%" > |
| 293 | <option value='0' {{if obj.rylx==0}} selected = 'selected' {{/if}}>0号柴油</option> | 298 | <option value='0' {{if obj.rylx==0}} selected = 'selected' {{/if}}>0号柴油</option> |
| 294 | <option value='1' {{if obj.rylx==1}} selected = 'selected' {{/if}}>负10号柴油</option> | 299 | <option value='1' {{if obj.rylx==1}} selected = 'selected' {{/if}}>负10号柴油</option> |
| @@ -296,13 +301,13 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -296,13 +301,13 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 296 | <option value='3' {{if obj.rylx==3}} selected = 'selected' {{/if}}>B5-负10号柴油</option> | 301 | <option value='3' {{if obj.rylx==3}} selected = 'selected' {{/if}}>B5-负10号柴油</option> |
| 297 | </select> | 302 | </select> |
| 298 | </td> | 303 | </td> |
| 299 | - <td width="4%"> | 304 | + <td > |
| 300 | <input data-id="{{obj.id}}" href="javascript:;" | 305 | <input data-id="{{obj.id}}" href="javascript:;" |
| 301 | class="in_carpark_ns yl_sxzy" id="{{(i+1)}}_4" type="text" value=" {{obj.ns}}" style=" width:100%" | 306 | class="in_carpark_ns yl_sxzy" id="{{(i+1)}}_4" type="text" value=" {{obj.ns}}" style=" width:100%" |
| 302 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" | 307 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" |
| 303 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> | 308 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')"> |
| 304 | </td> | 309 | </td> |
| 305 | - <td width="8%"> | 310 | + <td > |
| 306 | <select data-id="{{obj.id}}" class="in_carpark_shyy" style=" width:100%" > | 311 | <select data-id="{{obj.id}}" class="in_carpark_shyy" style=" width:100%" > |
| 307 | <option value='0' {{if obj.shyy==0}} selected = 'selected' {{/if}}>请选择</option> | 312 | <option value='0' {{if obj.shyy==0}} selected = 'selected' {{/if}}>请选择</option> |
| 308 | <option value='1' {{if obj.shyy==1}} selected = 'selected' {{/if}}>票务用油</option> | 313 | <option value='1' {{if obj.shyy==1}} selected = 'selected' {{/if}}>票务用油</option> |
| @@ -315,22 +320,30 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -315,22 +320,30 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 315 | <option value='8' {{if obj.shyy==8}} selected = 'selected' {{/if}}>车间(小修)</option> | 320 | <option value='8' {{if obj.shyy==8}} selected = 'selected' {{/if}}>车间(小修)</option> |
| 316 | </select> | 321 | </select> |
| 317 | </td> | 322 | </td> |
| 318 | - <td width="5%"> | 323 | + <td> |
| 319 | <input data-id="{{obj.id}}" id="{{(i+1)}}_5" href="javascript:;" class="in_carpark_shyl yl_sxzy" | 324 | <input data-id="{{obj.id}}" id="{{(i+1)}}_5" href="javascript:;" class="in_carpark_shyl yl_sxzy" |
| 320 | value={{obj.sh}} style=" width:100%" type="text" | 325 | value={{obj.sh}} style=" width:100%" type="text" |
| 321 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" | 326 | onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" |
| 322 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" /> | 327 | onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" /> |
| 323 | 328 | ||
| 324 | </td> | 329 | </td> |
| 325 | - <td width="5%"> | ||
| 326 | - {{obj.zlc}} | 330 | + <td> |
| 331 | + <input data-id="{{obj.id}}" id="{{(i+1)}}_6" href="javascript:;" class="in_carpark_jylc yl_jylc" | ||
| 332 | + value={{obj.jylc_}} style=" width:100%" type="text" | ||
| 333 | +onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" | ||
| 334 | + onafterpaste="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.')" /> | ||
| 335 | + | ||
| 336 | + </td> | ||
| 337 | + <td > | ||
| 338 | + {{obj.zlc_}} | ||
| 327 | </td> | 339 | </td> |
| 328 | - <td width="5%"> | 340 | + <td > |
| 329 | <select data-id="{{obj.id}}" class="in_carpark_yhlx"> | 341 | <select data-id="{{obj.id}}" class="in_carpark_yhlx"> |
| 330 | <option value='0' {{if obj.yhlx==0}} selected = 'selected' {{/if}}>手录</option> | 342 | <option value='0' {{if obj.yhlx==0}} selected = 'selected' {{/if}}>手录</option> |
| 331 | <option value='1' {{if obj.yhlx==1}} selected = 'selected' {{/if}}>拆分</option> | 343 | <option value='1' {{if obj.yhlx==1}} selected = 'selected' {{/if}}>拆分</option> |
| 332 | </select> | 344 | </select> |
| 333 | </td> | 345 | </td> |
| 346 | + | ||
| 334 | <td > | 347 | <td > |
| 335 | {{obj.bglyh}} | 348 | {{obj.bglyh}} |
| 336 | </td> | 349 | </td> |
| @@ -394,11 +407,12 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -394,11 +407,12 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 394 | 407 | ||
| 395 | //保存 | 408 | //保存 |
| 396 | $(".saveButton").on('click',function(){ | 409 | $(".saveButton").on('click',function(){ |
| 397 | - | ||
| 398 | var params_=getParamsList(); | 410 | var params_=getParamsList(); |
| 411 | + var i = layer.load(2); | ||
| 399 | $get('/ylb/checkDate',params_,function(status){ | 412 | $get('/ylb/checkDate',params_,function(status){ |
| 400 | if(status=='3'){ | 413 | if(status=='3'){ |
| 401 | - layer.msg('只能操作三天内数据.'); | 414 | + layer.msg('只能操作三天内数据.'); |
| 415 | + layer.close(i); | ||
| 402 | }else{ | 416 | }else{ |
| 403 | var ylArray = []; | 417 | var ylArray = []; |
| 404 | $('input.icheck').each(function(){ | 418 | $('input.icheck').each(function(){ |
| @@ -429,6 +443,10 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -429,6 +443,10 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 429 | ns=0; | 443 | ns=0; |
| 430 | } | 444 | } |
| 431 | 445 | ||
| 446 | + var jylc=$('.in_carpark_jylc[data-id='+id+']', '#ll_oil_list').val(); | ||
| 447 | + if(jylc==""||jylc==null){ | ||
| 448 | + jylc=0; | ||
| 449 | + } | ||
| 432 | var rylx= $('.in_carpark_rylx[data-id='+id+']', '#ll_oil_list').val(); | 450 | var rylx= $('.in_carpark_rylx[data-id='+id+']', '#ll_oil_list').val(); |
| 433 | var yhlx = $('.in_carpark_yhlx[data-id='+id+']', '#ll_oil_list').val(); | 451 | var yhlx = $('.in_carpark_yhlx[data-id='+id+']', '#ll_oil_list').val(); |
| 434 | 452 | ||
| @@ -442,12 +460,13 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -442,12 +460,13 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 442 | map['rylx']=rylx; | 460 | map['rylx']=rylx; |
| 443 | map['yhlx']=yhlx; | 461 | map['yhlx']=yhlx; |
| 444 | map['nbbm']=nbbm; | 462 | map['nbbm']=nbbm; |
| 463 | + map['jylc']=jylc; | ||
| 445 | map['rq']=$("#rq").val(); | 464 | map['rq']=$("#rq").val(); |
| 446 | ylArray.push(map); | 465 | ylArray.push(map); |
| 447 | }) | 466 | }) |
| 448 | var params = {}; | 467 | var params = {}; |
| 449 | params['ylbList']=JSON.stringify(ylArray); | 468 | params['ylbList']=JSON.stringify(ylArray); |
| 450 | - var i = layer.load(2); | 469 | + |
| 451 | $post('/ylb/saveYlbList', params, function () { | 470 | $post('/ylb/saveYlbList', params, function () { |
| 452 | layer.close(i); | 471 | layer.close(i); |
| 453 | var params1 =getParamsList(); | 472 | var params1 =getParamsList(); |