Commit 22cdb082849c5ed97f3f4ae1f304198d585ddb88
1 parent
ae8549a4
LGF 改"\\"为"/"
Showing
4 changed files
with
44 additions
and
44 deletions
src/main/java/com/bsth/controller/oil/YlbController.java
| ... | ... | @@ -186,9 +186,9 @@ public class YlbController extends BaseController<Ylb, Integer>{ |
| 186 | 186 | } |
| 187 | 187 | try { |
| 188 | 188 | listI.add(resList.iterator()); |
| 189 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 190 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\list.xls", | |
| 191 | - path+"export\\进出场存油量" + sdfSimple.format(sdfMonth.parse(map.get("rq").toString())) + ".xls"); | |
| 189 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 190 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/list.xls", | |
| 191 | + path+"export/进出场存油量" + sdfSimple.format(sdfMonth.parse(map.get("rq").toString())) + ".xls"); | |
| 192 | 192 | } catch (Exception e) { |
| 193 | 193 | e.printStackTrace(); |
| 194 | 194 | } | ... | ... |
src/main/java/com/bsth/service/forms/impl/ExportServiceImpl.java
| ... | ... | @@ -72,9 +72,9 @@ public class ExportServiceImpl implements ExportService{ |
| 72 | 72 | |
| 73 | 73 | try { |
| 74 | 74 | listI.add(resList.iterator()); |
| 75 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 76 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\linepasswengerflow.xls", | |
| 77 | - path+"export\\线路客流量报表" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 75 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 76 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/linepasswengerflow.xls", | |
| 77 | + path+"export/线路客流量报表" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 78 | 78 | } catch (Exception e) { |
| 79 | 79 | e.printStackTrace(); |
| 80 | 80 | } |
| ... | ... | @@ -115,9 +115,9 @@ public class ExportServiceImpl implements ExportService{ |
| 115 | 115 | |
| 116 | 116 | try { |
| 117 | 117 | listI.add(resList.iterator()); |
| 118 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 119 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\shifday.xls", | |
| 120 | - path+"export\\班次车辆人员日报表" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 118 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 119 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/shifday.xls", | |
| 120 | + path+"export/班次车辆人员日报表" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 121 | 121 | } catch (Exception e) { |
| 122 | 122 | e.printStackTrace(); |
| 123 | 123 | } |
| ... | ... | @@ -151,9 +151,9 @@ public class ExportServiceImpl implements ExportService{ |
| 151 | 151 | |
| 152 | 152 | try { |
| 153 | 153 | listI.add(resList.iterator()); |
| 154 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 155 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\shiftuehiclemanth.xls", | |
| 156 | - path+"export\\班次车辆人员月报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 154 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 155 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/shiftuehiclemanth.xls", | |
| 156 | + path+"export/班次车辆人员月报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 157 | 157 | } catch (Exception e) { |
| 158 | 158 | e.printStackTrace(); |
| 159 | 159 | } |
| ... | ... | @@ -191,9 +191,9 @@ public class ExportServiceImpl implements ExportService{ |
| 191 | 191 | |
| 192 | 192 | try { |
| 193 | 193 | listI.add(resList.iterator()); |
| 194 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 195 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\singledata.xls", | |
| 196 | - path+"export\\路单日报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 194 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 195 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/singledata.xls", | |
| 196 | + path+"export/路单日报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 197 | 197 | } catch (Exception e) { |
| 198 | 198 | e.printStackTrace(); |
| 199 | 199 | } |
| ... | ... | @@ -230,9 +230,9 @@ public class ExportServiceImpl implements ExportService{ |
| 230 | 230 | |
| 231 | 231 | try { |
| 232 | 232 | listI.add(resList.iterator()); |
| 233 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 234 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\vehicleloading.xls", | |
| 235 | - path+"export\\车辆加注" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 233 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 234 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/vehicleloading.xls", | |
| 235 | + path+"export/车辆加注" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 236 | 236 | } catch (Exception e) { |
| 237 | 237 | e.printStackTrace(); |
| 238 | 238 | } |
| ... | ... | @@ -261,9 +261,9 @@ public class ExportServiceImpl implements ExportService{ |
| 261 | 261 | |
| 262 | 262 | try { |
| 263 | 263 | listI.add(resList.iterator()); |
| 264 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 265 | - ee.excelReplace(listI, new Object[] { map }, path+"mould\\operationservice.xls", | |
| 266 | - path+"export\\运营服务阶段报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 264 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 265 | + ee.excelReplace(listI, new Object[] { map }, path+"mould/operationservice.xls", | |
| 266 | + path+"export/运营服务阶段报表" + sdfSimple.format(sdfMonth.parse(startDate)) + ".xls"); | |
| 267 | 267 | } catch (Exception e) { |
| 268 | 268 | e.printStackTrace(); |
| 269 | 269 | } | ... | ... |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| ... | ... | @@ -538,11 +538,11 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 538 | 538 | map.put("ljbc", ljbc); |
| 539 | 539 | map.put("sjbc", jhbc-cjbc+ljbc); |
| 540 | 540 | |
| 541 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 541 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 542 | 542 | |
| 543 | 543 | list.add(listMap.iterator()); |
| 544 | - ee.excelReplace(list, new Object[] { scheduleRealInfos.get(0),map }, path+"mould\\waybill_minhang.xls", | |
| 545 | - path+"export\\" + date+"-"+jName+"-"+clZbh+"-"+lpName+"-行车路单.xls"); | |
| 544 | + ee.excelReplace(list, new Object[] { scheduleRealInfos.get(0),map }, path+"mould/waybill_minhang.xls", | |
| 545 | + path+"export/" + date+"-"+jName+"-"+clZbh+"-"+lpName+"-行车路单.xls"); | |
| 546 | 546 | return scheduleRealInfos; |
| 547 | 547 | } |
| 548 | 548 | |
| ... | ... | @@ -575,12 +575,12 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 575 | 575 | map.put("totalYH", totalYH); |
| 576 | 576 | map.put("totalBCS", totalBCS); |
| 577 | 577 | |
| 578 | - String path = this.getClass().getResource("/").getPath() + "static\\pages\\forms\\"; | |
| 578 | + String path = this.getClass().getResource("/").getPath() + "static/pages/forms/"; | |
| 579 | 579 | |
| 580 | 580 | listI.add(list.iterator()); |
| 581 | 581 | try { |
| 582 | - ee.excelReplace(listI, new Object[]{map}, path + "mould\\daily.xls", | |
| 583 | - path + "export\\班次日报" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 582 | + ee.excelReplace(listI, new Object[]{map}, path + "mould/daily.xls", | |
| 583 | + path + "export/班次日报" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 584 | 584 | } catch (ParseException e) { |
| 585 | 585 | e.printStackTrace(); |
| 586 | 586 | } |
| ... | ... | @@ -632,9 +632,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 632 | 632 | } |
| 633 | 633 | try { |
| 634 | 634 | listI.add(newList.iterator()); |
| 635 | - String path = this.getClass().getResource("/").getPath() + "static\\pages\\forms\\"; | |
| 636 | - ee.excelReplace(listI, new Object[]{m}, path + "mould\\historyMessage.xls", | |
| 637 | - path + "export\\调度历史消息" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 635 | + String path = this.getClass().getResource("/").getPath() + "static/pages/forms/"; | |
| 636 | + ee.excelReplace(listI, new Object[]{m}, path + "mould/historyMessage.xls", | |
| 637 | + path + "export/调度历史消息" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 638 | 638 | } catch (Exception e) { |
| 639 | 639 | // TODO: handle exception |
| 640 | 640 | e.printStackTrace(); |
| ... | ... | @@ -661,9 +661,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 661 | 661 | } |
| 662 | 662 | try { |
| 663 | 663 | listI.add(newList.iterator()); |
| 664 | - String path = this.getClass().getResource("/").getPath() + "static\\pages\\forms\\"; | |
| 665 | - ee.excelReplace(listI, new Object[]{m}, path + "mould\\message.xls", | |
| 666 | - path + "export\\调度消息分析" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 664 | + String path = this.getClass().getResource("/").getPath() + "static/pages/forms/"; | |
| 665 | + ee.excelReplace(listI, new Object[]{m}, path + "mould/message.xls", | |
| 666 | + path + "export/调度消息分析" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 667 | 667 | } catch (Exception e) { |
| 668 | 668 | // TODO: handle exception |
| 669 | 669 | e.printStackTrace(); |
| ... | ... | @@ -1261,9 +1261,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1261 | 1261 | } |
| 1262 | 1262 | try { |
| 1263 | 1263 | listI.add(listMap.iterator()); |
| 1264 | - String path = this.getClass().getResource("/").getPath() + "static\\pages\\forms\\"; | |
| 1265 | - ee.excelReplace(listI, new Object[]{m}, path + "mould\\account.xls", | |
| 1266 | - path + "export\\驾驶员请求台账" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 1264 | + String path = this.getClass().getResource("/").getPath() + "static/pages/forms/"; | |
| 1265 | + ee.excelReplace(listI, new Object[]{m}, path + "mould/account.xls", | |
| 1266 | + path + "export/驾驶员请求台账" + sdfSimple.format(sdfMonth.parse(date)) + ".xls"); | |
| 1267 | 1267 | } catch (Exception e) { |
| 1268 | 1268 | // TODO: handle exception |
| 1269 | 1269 | e.printStackTrace(); |
| ... | ... | @@ -1316,9 +1316,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1316 | 1316 | } |
| 1317 | 1317 | try { |
| 1318 | 1318 | listI.add(tempList.iterator()); |
| 1319 | - String path = this.getClass().getResource("/").getPath() + "static\\pages\\forms\\"; | |
| 1320 | - ee.excelReplace(listI, new Object[]{m}, path + "mould\\correctForm.xls", | |
| 1321 | - path + "export\\修正报表" + sdfSimple.format(sdfMonth.parse(startDate)) + "-" + sdfSimple.format(sdfMonth.parse(endDate)) + ".xls"); | |
| 1319 | + String path = this.getClass().getResource("/").getPath() + "static/pages/forms/"; | |
| 1320 | + ee.excelReplace(listI, new Object[]{m}, path + "mould/correctForm.xls", | |
| 1321 | + path + "export/修正报表" + sdfSimple.format(sdfMonth.parse(startDate)) + "-" + sdfSimple.format(sdfMonth.parse(endDate)) + ".xls"); | |
| 1322 | 1322 | } catch (Exception e) { |
| 1323 | 1323 | // TODO: handle exception |
| 1324 | 1324 | e.printStackTrace(); |
| ... | ... | @@ -1554,9 +1554,9 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf |
| 1554 | 1554 | ReportUtils ee = new ReportUtils(); |
| 1555 | 1555 | try { |
| 1556 | 1556 | listI.add(lMap.iterator()); |
| 1557 | - String path = this.getClass().getResource("/").getPath()+"static\\pages\\forms\\"; | |
| 1558 | - ee.excelReplace(listI, new Object[] { m }, path+"mould\\statisticsDaily_.xls", | |
| 1559 | - path+"export\\统计日报" + sdfSimple.format(sdfMonth.parse(date))+".xls"); | |
| 1557 | + String path = this.getClass().getResource("/").getPath()+"static/pages/forms/"; | |
| 1558 | + ee.excelReplace(listI, new Object[] { m }, path+"mould/statisticsDaily_.xls", | |
| 1559 | + path+"export/统计日报" + sdfSimple.format(sdfMonth.parse(date))+".xls"); | |
| 1560 | 1560 | } catch (Exception e) { |
| 1561 | 1561 | // TODO: handle exception |
| 1562 | 1562 | e.printStackTrace(); | ... | ... |
src/main/java/com/bsth/util/ReportUtils.java
| ... | ... | @@ -342,8 +342,8 @@ public class ReportUtils { |
| 342 | 342 | dataList.add(sr); |
| 343 | 343 | list.add(dataList.iterator()); |
| 344 | 344 | |
| 345 | - ee.excelReplace(list, new Object[] { srr }, "D:\\waybill.xls", | |
| 346 | - "D:\\22.xls"); | |
| 345 | + ee.excelReplace(list, new Object[] { srr }, "D:/waybill.xls", | |
| 346 | + "D:/22.xls"); | |
| 347 | 347 | System.out.println("ok"); |
| 348 | 348 | } catch (Exception e) { |
| 349 | 349 | e.printStackTrace(); | ... | ... |