Commit 10b0d3c3c9ef606201a58c9ef51686764387cfb8
1 parent
199915a6
人工干预油量时不考虑接口数据
Showing
3 changed files
with
36 additions
and
12 deletions
src/main/java/com/bsth/service/oil/impl/CwjyServiceImpl.java
| @@ -315,7 +315,7 @@ public class CwjyServiceImpl extends BaseServiceImpl<Cwjy,Integer> implements Cw | @@ -315,7 +315,7 @@ public class CwjyServiceImpl extends BaseServiceImpl<Cwjy,Integer> implements Cw | ||
| 315 | return t; | 315 | return t; |
| 316 | } | 316 | } |
| 317 | }); | 317 | }); |
| 318 | - List<Ylxxb> list= ylxxbRepository.checkYlxx(rq, gsdm); | 318 | + /*List<Ylxxb> list= ylxxbRepository.checkYlxx(rq, gsdm); |
| 319 | for (int i = 0; i < yList.size(); i++) { | 319 | for (int i = 0; i < yList.size(); i++) { |
| 320 | Ylxxb t=yList.get(i); | 320 | Ylxxb t=yList.get(i); |
| 321 | Double zjzl=0.0; | 321 | Double zjzl=0.0; |
| @@ -327,7 +327,7 @@ public class CwjyServiceImpl extends BaseServiceImpl<Cwjy,Integer> implements Cw | @@ -327,7 +327,7 @@ public class CwjyServiceImpl extends BaseServiceImpl<Cwjy,Integer> implements Cw | ||
| 327 | 327 | ||
| 328 | } | 328 | } |
| 329 | t.setZjzl(zjzl); | 329 | t.setZjzl(zjzl); |
| 330 | - } | 330 | + }*/ |
| 331 | return yList; | 331 | return yList; |
| 332 | } | 332 | } |
| 333 | 333 |
src/main/java/com/bsth/service/oil/impl/YlbServiceImpl.java
| @@ -379,18 +379,42 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | @@ -379,18 +379,42 @@ public class YlbServiceImpl extends BaseServiceImpl<Ylb,Integer> implements YlbS | ||
| 379 | if(ylMap.get(map.get("clZbh").toString()+"_"+ map.get("jGh").toString())!=null){ | 379 | if(ylMap.get(map.get("clZbh").toString()+"_"+ map.get("jGh").toString())!=null){ |
| 380 | 380 | ||
| 381 | }else{ | 381 | }else{ |
| 382 | - // 把当天的YLXXB的加注量设置为当天YLB的加注量(根据车号,驾驶员判断) | ||
| 383 | - for (int j = 0; j < ylxxList.size(); j++) { | ||
| 384 | - Ylxxb ylxxb = ylxxList.get(j); | 382 | + boolean fage2=false; |
| 383 | + for (int i = 0; i < ylxxList.size(); i++) { | ||
| 384 | + Ylxxb ylxxb = ylxxList.get(i); | ||
| 385 | if (map.get("clZbh").toString().equals(ylxxb.getNbbm()) | 385 | if (map.get("clZbh").toString().equals(ylxxb.getNbbm()) |
| 386 | - && map.get("jGh").toString().equals(ylxxb.getJsy())) { | ||
| 387 | - jzl =Arith.add(jzl, ylxxb.getJzl()); | 386 | + && ylxxb.getJylx()==1) { |
| 387 | + if(ylxxb.getJzl()>0){ | ||
| 388 | + fage2=true; | ||
| 389 | + } | ||
| 390 | + | ||
| 388 | } | 391 | } |
| 389 | } | 392 | } |
| 390 | - ylMap.put(map.get("clZbh").toString()+"_"+ map.get("jGh").toString(),map.get("xlBm") == null ? "" : map.get("xlBm").toString()); | 393 | + //车辆的加注量如果有任工干预,略接口过来 数据 |
| 394 | + if(fage2){ | ||
| 395 | + // 把当天手工输入的的YLXXB的加注量设置为当天YLB的加注量(根据车号,驾驶员判断,加油类型为1) | ||
| 396 | + for (int j = 0; j < ylxxList.size(); j++) { | ||
| 397 | + Ylxxb ylxxb = ylxxList.get(j); | ||
| 398 | + if (map.get("clZbh").toString().equals(ylxxb.getNbbm()) | ||
| 399 | + && map.get("jGh").toString().equals(ylxxb.getJsy()) | ||
| 400 | + && ylxxb.getJylx()==1) { | ||
| 401 | + jzl =Arith.add(jzl, ylxxb.getJzl()); | ||
| 402 | + } | ||
| 403 | + } | ||
| 404 | + ylMap.put(map.get("clZbh").toString()+"_"+ map.get("jGh").toString(),map.get("xlBm") == null ? "" : map.get("xlBm").toString()); | ||
| 405 | + }else{ | ||
| 406 | + // 把当天的YLXXB的加注量设置为当天YLB的加注量(根据车号,驾驶员判断) | ||
| 407 | + for (int j = 0; j < ylxxList.size(); j++) { | ||
| 408 | + Ylxxb ylxxb = ylxxList.get(j); | ||
| 409 | + if (map.get("clZbh").toString().equals(ylxxb.getNbbm()) | ||
| 410 | + && map.get("jGh").toString().equals(ylxxb.getJsy())) { | ||
| 411 | + jzl =Arith.add(jzl, ylxxb.getJzl()); | ||
| 412 | + } | ||
| 413 | + } | ||
| 414 | + ylMap.put(map.get("clZbh").toString()+"_"+ map.get("jGh").toString(),map.get("xlBm") == null ? "" : map.get("xlBm").toString()); | ||
| 415 | + } | ||
| 416 | + | ||
| 391 | } | 417 | } |
| 392 | - | ||
| 393 | - | ||
| 394 | t.setJzl(jzl); | 418 | t.setJzl(jzl); |
| 395 | t.setNbbm(map.get("clZbh").toString()); | 419 | t.setNbbm(map.get("clZbh").toString()); |
| 396 | t.setJsy(map.get("jGh") == null ? "" : map.get("jGh").toString()); | 420 | t.setJsy(map.get("jGh") == null ? "" : map.get("jGh").toString()); |
src/main/resources/static/pages/oil/jyglList.html
| @@ -69,7 +69,7 @@ | @@ -69,7 +69,7 @@ | ||
| 69 | <th width="3%">油价</th> | 69 | <th width="3%">油价</th> |
| 70 | <th width="4%">路单工号</th> | 70 | <th width="4%">路单工号</th> |
| 71 | <th width="4%">备注</th> | 71 | <th width="4%">备注</th> |
| 72 | - <th width="10%">总加注量</th> | 72 | + <th width="10%">操作</th> |
| 73 | </tr> | 73 | </tr> |
| 74 | <tr role="row" class="filter"> | 74 | <tr role="row" class="filter"> |
| 75 | <td></td> | 75 | <td></td> |
| @@ -160,7 +160,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | @@ -160,7 +160,7 @@ onkeyup="this.value=this.value.replace(/[^(\d||/.)]/g,'').replace('.','$#$').rep | ||
| 160 | type="text" value="{{obj.bz}}" style=" width:45px" /> | 160 | type="text" value="{{obj.bz}}" style=" width:45px" /> |
| 161 | </td> | 161 | </td> |
| 162 | <td> | 162 | <td> |
| 163 | - {{obj.zjzl}} | 163 | + |
| 164 | </td> | 164 | </td> |
| 165 | </tr> | 165 | </tr> |
| 166 | {{/each}} | 166 | {{/each}} |