|
@@ -447,7 +447,7 @@ public class PriceInfoController {
|
|
|
return msgResult;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="导出人员")
|
|
|
+ @ApiOperation(value="导出站点价格")
|
|
|
@PostMapping("exportXls")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "routeId", value = "线路Id", required = false, paramType = "form", dataType = "String"),
|
|
@@ -483,18 +483,18 @@ public class PriceInfoController {
|
|
|
|
|
|
//标题列
|
|
|
for(int i=0;i<stationInfoList.size();i++){
|
|
|
- StationInfo startStation = stationInfoList.get(i);
|
|
|
+ StationInfo endStation = stationInfoList.get(i);
|
|
|
XSSFCell cellTitle = rowTitle.createCell(i+1);
|
|
|
- cellTitle.setCellValue(startStation.getName());
|
|
|
+ cellTitle.setCellValue(endStation.getName());
|
|
|
|
|
|
XSSFRow rowContent = sheet.createRow(i + 1);
|
|
|
|
|
|
XSSFCell cellContent1 = rowContent.createCell(0);
|
|
|
- cellContent1.setCellValue(startStation.getName());
|
|
|
+ cellContent1.setCellValue(endStation.getName());
|
|
|
|
|
|
//第二列开始
|
|
|
for(int j=0; j<stationInfoList.size(); j++){
|
|
|
- StationInfo endStation = stationInfoList.get(j);
|
|
|
+ StationInfo startStation = stationInfoList.get(j);
|
|
|
PriceInfo priceInfo = priceInfoService.findByStartStationAndEndStation(startStation.getId(),endStation.getId());
|
|
|
|
|
|
XSSFCell cellContent2 = rowContent.createCell(j+1);
|