Commit d9a4f319ec0247c5ad0d0be55c2b978214b501e7
1 parent
71f75bd5
update--导出excel表增加sp简称字段
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| @@ -299,6 +299,8 @@ public class VideosController { | @@ -299,6 +299,8 @@ public class VideosController { | ||
| 299 | cell.setCellValue("视频时长(秒)"); | 299 | cell.setCellValue("视频时长(秒)"); |
| 300 | cell = row.createCell(14);//列 | 300 | cell = row.createCell(14);//列 |
| 301 | cell.setCellValue("spid"); | 301 | cell.setCellValue("spid"); |
| 302 | + cell = row.createCell(15);//列 | ||
| 303 | + cell.setCellValue("sp简称"); | ||
| 302 | for (int i = 0; i < shyVideosList.size(); i++) { | 304 | for (int i = 0; i < shyVideosList.size(); i++) { |
| 303 | row = sheetlist.createRow((short) (i + 1));//行 | 305 | row = sheetlist.createRow((short) (i + 1));//行 |
| 304 | cell = row.createCell(0);//列 | 306 | cell = row.createCell(0);//列 |
| @@ -354,6 +356,8 @@ public class VideosController { | @@ -354,6 +356,8 @@ public class VideosController { | ||
| 354 | cell.setCellValue(shyVideosList.get(i).getDuration()); | 356 | cell.setCellValue(shyVideosList.get(i).getDuration()); |
| 355 | cell = row.createCell(14);//列 | 357 | cell = row.createCell(14);//列 |
| 356 | cell.setCellValue(shyVideosList.get(i).getSpid()); | 358 | cell.setCellValue(shyVideosList.get(i).getSpid()); |
| 359 | + cell = row.createCell(15);//列 | ||
| 360 | + cell.setCellValue(sitesService.findspidDescByspid(shyVideosList.get(i).getSpid()).getName()); | ||
| 357 | } | 361 | } |
| 358 | 362 | ||
| 359 | ByteArrayOutputStream os = new ByteArrayOutputStream(); | 363 | ByteArrayOutputStream os = new ByteArrayOutputStream(); |