mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 11:56:50 +08:00
【新需求和修改BUG】1.案例导出新增标题、2.密级字段修改编译报错问题
This commit is contained in:
@@ -177,6 +177,8 @@ public class CasesApi extends ApiBaseController {
|
|||||||
try {
|
try {
|
||||||
OutputStream = response.getOutputStream();
|
OutputStream = response.getOutputStream();
|
||||||
LinkedHashMap<String,String> map = new LinkedHashMap<>();
|
LinkedHashMap<String,String> map = new LinkedHashMap<>();
|
||||||
|
map.put("标题","title");
|
||||||
|
map.put("密级","confidentialityLevel");
|
||||||
map.put("浏览量","views");
|
map.put("浏览量","views");
|
||||||
map.put("推荐量","recommends");
|
map.put("推荐量","recommends");
|
||||||
map.put("引用量","cites");
|
map.put("引用量","cites");
|
||||||
@@ -191,6 +193,8 @@ public class CasesApi extends ApiBaseController {
|
|||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
for (Cases c:list){
|
for (Cases c:list){
|
||||||
CaseExportVo caseExportVo = new CaseExportVo();
|
CaseExportVo caseExportVo = new CaseExportVo();
|
||||||
|
caseExportVo.setTitle(c.getTitle());
|
||||||
|
caseExportVo.setConfidentialityLevel(c.getConfidentialityLevel());
|
||||||
caseExportVo.setViews(c.getViews());
|
caseExportVo.setViews(c.getViews());
|
||||||
caseExportVo.setRecommends(c.getRecommends());
|
caseExportVo.setRecommends(c.getRecommends());
|
||||||
caseExportVo.setCites(c.getCites());
|
caseExportVo.setCites(c.getCites());
|
||||||
|
|||||||
@@ -28,4 +28,5 @@ public class CaseVo {
|
|||||||
private String authorName;
|
private String authorName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,4 +34,6 @@ public class CaseExportVo {
|
|||||||
private String caseScope;
|
private String caseScope;
|
||||||
|
|
||||||
private LocalDateTime endTime;
|
private LocalDateTime endTime;
|
||||||
|
|
||||||
|
private String confidentialityLevel;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,20 +11,12 @@ import com.xboe.module.dict.service.ISysDictionaryService;
|
|||||||
import com.xboe.module.dict.vo.DictionaryVo;
|
import com.xboe.module.dict.vo.DictionaryVo;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
||||||
import org.apache.poi.ss.usermodel.*;
|
|
||||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
||||||
import org.springframework.cache.Cache;
|
|
||||||
import org.springframework.cache.CacheManager;
|
import org.springframework.cache.CacheManager;
|
||||||
import org.springframework.cache.annotation.CacheEvict;
|
import org.springframework.cache.annotation.CacheEvict;
|
||||||
import org.springframework.cache.annotation.Caching;
|
import org.springframework.cache.annotation.Caching;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.io.InputStream;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user