Merge remote-tracking branch 'origin/master'

This commit is contained in:
buerjun
2023-06-29 16:20:57 +08:00
4 changed files with 7 additions and 8 deletions

View File

@@ -177,6 +177,8 @@ public class CasesApi extends ApiBaseController {
try {
OutputStream = response.getOutputStream();
LinkedHashMap<String,String> map = new LinkedHashMap<>();
map.put("标题","title");
map.put("密级","confidentialityLevel");
map.put("浏览量","views");
map.put("推荐量","recommends");
map.put("引用量","cites");
@@ -191,6 +193,8 @@ public class CasesApi extends ApiBaseController {
LocalDateTime now = LocalDateTime.now();
for (Cases c:list){
CaseExportVo caseExportVo = new CaseExportVo();
caseExportVo.setTitle(c.getTitle());
caseExportVo.setConfidentialityLevel(c.getConfidentialityLevel());
caseExportVo.setViews(c.getViews());
caseExportVo.setRecommends(c.getRecommends());
caseExportVo.setCites(c.getCites());

View File

@@ -28,4 +28,5 @@ public class CaseVo {
private String authorName;
}

View File

@@ -34,4 +34,6 @@ public class CaseExportVo {
private String caseScope;
private LocalDateTime endTime;
private String confidentialityLevel;
}

View File

@@ -11,20 +11,12 @@ import com.xboe.module.dict.service.ISysDictionaryService;
import com.xboe.module.dict.vo.DictionaryVo;
import lombok.extern.slf4j.Slf4j;
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.annotation.CacheEvict;
import org.springframework.cache.annotation.Caching;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
/**