Commit 6925cbf9cc62f8f545fc55d3c9506194d9e71798
1 parent
5b3a7a25
导出修改
Showing
1 changed file
with
12 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -383,7 +383,18 @@ public class VideosController { |
| 383 | 383 | cell = row.createCell(15);//列 |
| 384 | 384 | cell.setCellValue(shyVideosList.get(i).getSpid()); |
| 385 | 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())&­VideosList.get(i).getCategory().equals(CommonConst.CATEGORY_WITNESS)){ | |
| 391 | + cell.setCellValue(shySites.getName()+"目击者"); | |
| 392 | + }else if(CommonUtils.isNotEmpty(shyVideosList.get(i).getCategory())&­VideosList.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 | 400 | ByteArrayOutputStream os = new ByteArrayOutputStream(); | ... | ... |