Commit 7a2ad201bc5ebddc47daba836b32175e41ead071
1 parent
235080b4
路单线路年报、月报表,异常处理
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/bsth/service/calc/impl/CalcWaybillServiceImpl.java
| @@ -2012,6 +2012,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | @@ -2012,6 +2012,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | ||
| 2012 | // List类转换 | 2012 | // List类转换 |
| 2013 | final List<CalcWaybillDetail> listNew = JSONArray.parseArray(JSON.toJSONString(list), CalcWaybillDetail.class); | 2013 | final List<CalcWaybillDetail> listNew = JSONArray.parseArray(JSON.toJSONString(list), CalcWaybillDetail.class); |
| 2014 | 2014 | ||
| 2015 | + if(flag == 4) | ||
| 2015 | try { | 2016 | try { |
| 2016 | List<Ylb> ylbNotSchedule = calcRepository.ylbNotSchedule(line, dateFormat.parse(startDate), dateFormat.parse(endDate), gsdm, fgsdm, destroy); | 2017 | List<Ylb> ylbNotSchedule = calcRepository.ylbNotSchedule(line, dateFormat.parse(startDate), dateFormat.parse(endDate), gsdm, fgsdm, destroy); |
| 2017 | List<Dlb> dlbNotSchedule = calcRepository.DlbNotSchedule(line, dateFormat.parse(startDate), dateFormat.parse(endDate), gsdm, fgsdm, destroy); | 2018 | List<Dlb> dlbNotSchedule = calcRepository.DlbNotSchedule(line, dateFormat.parse(startDate), dateFormat.parse(endDate), gsdm, fgsdm, destroy); |
| @@ -2047,7 +2048,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | @@ -2047,7 +2048,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | ||
| 2047 | cNew.setCl(y.getNbbm()); | 2048 | cNew.setCl(y.getNbbm()); |
| 2048 | cNew.setjGh(y.getJsy()); | 2049 | cNew.setjGh(y.getJsy()); |
| 2049 | cNew.setjName(BasicData.allPerson.get(y.getSsgsdm()+"-"+y.getJsy())); | 2050 | cNew.setjName(BasicData.allPerson.get(y.getSsgsdm()+"-"+y.getJsy())); |
| 2050 | - listNew.add(l+1, cNew); | 2051 | + listNew.add(l, cNew); |
| 2051 | } else { | 2052 | } else { |
| 2052 | CalcWaybillDetail cNew = new CalcWaybillDetail(); | 2053 | CalcWaybillDetail cNew = new CalcWaybillDetail(); |
| 2053 | cNew.setRq(ylbrq); | 2054 | cNew.setRq(ylbrq); |
| @@ -2096,7 +2097,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | @@ -2096,7 +2097,7 @@ public class CalcWaybillServiceImpl extends BaseServiceImpl<CalcWaybill, Integer | ||
| 2096 | cNew.setCl(d.getNbbm()); | 2097 | cNew.setCl(d.getNbbm()); |
| 2097 | cNew.setjGh(d.getJsy()); | 2098 | cNew.setjGh(d.getJsy()); |
| 2098 | cNew.setjName(BasicData.allPerson.get(d.getSsgsdm()+"-"+d.getJsy())); | 2099 | cNew.setjName(BasicData.allPerson.get(d.getSsgsdm()+"-"+d.getJsy())); |
| 2099 | - listNew.add(l+1, cNew); | 2100 | + listNew.add(l, cNew); |
| 2100 | } else { | 2101 | } else { |
| 2101 | CalcWaybillDetail cNew = new CalcWaybillDetail(); | 2102 | CalcWaybillDetail cNew = new CalcWaybillDetail(); |
| 2102 | cNew.setRq(dlbrq); | 2103 | cNew.setRq(dlbrq); |