Commit ec705dfad31e7e6c25c2b9b998782d7fc89393a2
1 parent
1c69f89d
修复:线路首末班误点班次(firstAndLastBus_delay)导出时有的参数是null的问题。
Showing
1 changed file
with
6 additions
and
6 deletions
src/main/java/com/bsth/service/schedule/impl/PeopleCarPlanServiceImpl.java
| ... | ... | @@ -2053,12 +2053,12 @@ public class PeopleCarPlanServiceImpl implements PeopleCarPlanService { |
| 2053 | 2053 | Map<String,Object> m = new HashMap<String, Object>(); |
| 2054 | 2054 | ReportUtils ee = new ReportUtils(); |
| 2055 | 2055 | try { |
| 2056 | - if(resList.size() > 0) | |
| 2057 | - listI.add(((List<Map<String, Object>>)resList.get(resList.size() - 1).get("map")).iterator()); | |
| 2058 | - listI.add(resList.iterator()); | |
| 2059 | - String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 2060 | - ee.excelReplace(listI, new Object[] { tempMap }, path+"mould/firstAndLastBus_delay.xls", | |
| 2061 | - path+"export/" + dateTime + "-" + lineName + "-首末班误点班次.xls"); | |
| 2056 | + if(resList.size() > 0){ | |
| 2057 | + listI.add(((List<Map<String, Object>>)tempMap.get("map")).iterator()); | |
| 2058 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 2059 | + ee.excelReplace(listI, new Object[] { tempMap }, path+"mould/firstAndLastBus_delay.xls", | |
| 2060 | + path+"export/" + dateTime + "-" + lineName + "-首末班误点班次.xls"); | |
| 2061 | + } | |
| 2062 | 2062 | } catch (Exception e) { |
| 2063 | 2063 | // TODO: handle exception |
| 2064 | 2064 | e.printStackTrace(); | ... | ... |