1、project新增生成自动化报告接口
This commit is contained in:
@@ -121,4 +121,13 @@ public class DataClientFeignClientImpl implements IDataFeignClient {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void downloadFileToLocal(Long fileId,String path) {
|
||||
try {
|
||||
dataClient.downloadFileToLocal(fileId,path);
|
||||
} catch (Exception e) {
|
||||
log.error("下载文件响应", e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.sdm.common.entity.req.data.*;
|
||||
import com.sdm.common.entity.req.system.LaunchApproveReq;
|
||||
import com.sdm.common.entity.resp.data.FileMetadataInfoResp;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -43,5 +44,9 @@ public interface IDataFeignClient {
|
||||
@GetMapping("/data/queryFileMetadataInfo")
|
||||
SdmResponse<FileMetadataInfoResp> queryFileMetadataInfo(@RequestParam(value = "uuid") String uuid, @RequestParam(value = "uuidOwnType") String uuidOwnType);
|
||||
|
||||
@PostMapping("/data/downloadFileToLocal")
|
||||
void downloadFileToLocal(@RequestParam(value = "fileId") @Validated Long fileId, @RequestParam(value = "path") @Validated String path);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.alibaba.fastjson2.JSONObject;
|
||||
import com.sdm.common.entity.ExportExcelFormat;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
|
||||
@@ -258,7 +259,7 @@ public class ExcelUtil {
|
||||
String value = rowObj.getString(exportExcelFormat.getKey());
|
||||
if(value != null && !"null".equalsIgnoreCase(value)) {
|
||||
JSONObject dictData = exportExcelFormat.getDictData();
|
||||
if(dictData != null)
|
||||
if(ObjectUtils.isNotEmpty(dictData))
|
||||
{
|
||||
value = dictData.getString(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user