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 | 299 | cell.setCellValue("视频时长(秒)"); |
| 300 | 300 | cell = row.createCell(14);//列 |
| 301 | 301 | cell.setCellValue("spid"); |
| 302 | + cell = row.createCell(15);//列 | |
| 303 | + cell.setCellValue("sp简称"); | |
| 302 | 304 | for (int i = 0; i < shyVideosList.size(); i++) { |
| 303 | 305 | row = sheetlist.createRow((short) (i + 1));//行 |
| 304 | 306 | cell = row.createCell(0);//列 |
| ... | ... | @@ -354,6 +356,8 @@ public class VideosController { |
| 354 | 356 | cell.setCellValue(shyVideosList.get(i).getDuration()); |
| 355 | 357 | cell = row.createCell(14);//列 |
| 356 | 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 | 363 | ByteArrayOutputStream os = new ByteArrayOutputStream(); | ... | ... |