Commit 6925cbf9cc62f8f545fc55d3c9506194d9e71798

Authored by liwei2917
1 parent 5b3a7a25

导出修改

src/main/java/com/cnlive/shenhe/controller/VideosController.java
@@ -383,7 +383,18 @@ public class VideosController { @@ -383,7 +383,18 @@ public class VideosController {
383 cell = row.createCell(15);//列 383 cell = row.createCell(15);//列
384 cell.setCellValue(shyVideosList.get(i).getSpid()); 384 cell.setCellValue(shyVideosList.get(i).getSpid());
385 cell = row.createCell(16);//列 385 cell = row.createCell(16);//列
386 - cell.setCellValue(sitesService.findspidDescByspid(shyVideosList.get(i).getSpid()).getName()); 386 +
  387 + //显示spid简称
  388 + ShySites shySites = sitesService.findspidDescByspid(shyVideosList.get(i).getSpid());
  389 + if (CommonUtils.isNotNull(shySites)) {
  390 + if(CommonUtils.isNotEmpty(shyVideosList.get(i).getCategory())&&shyVideosList.get(i).getCategory().equals(CommonConst.CATEGORY_WITNESS)){
  391 + cell.setCellValue(shySites.getName()+"目击者");
  392 + }else if(CommonUtils.isNotEmpty(shyVideosList.get(i).getCategory())&&shyVideosList.get(i).getCategory().equals(CommonConst.CATEGORY_MOMENT)){
  393 + cell.setCellValue(shySites.getName()+"朋友圈");
  394 + }else{
  395 + cell.setCellValue(shySites.getName());
  396 + }
  397 + }
387 } 398 }
388 399
389 ByteArrayOutputStream os = new ByteArrayOutputStream(); 400 ByteArrayOutputStream os = new ByteArrayOutputStream();