|
@@ -38,6 +38,7 @@ import com.persagy.proxy.report.model.EquipmentExcel;
|
|
|
import com.persagy.proxy.report.service.IRelationReportService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.poi.openxml4j.util.ZipSecureFile;
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
|
import org.springframework.util.ResourceUtils;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -326,7 +327,7 @@ public class RelationReportController {
|
|
|
if (!file.exists()) {
|
|
|
file = ResourceUtils.getFile(AdmCommonConstant.SERVER_ROOT_PATH + AdmExcelUtil.TEMP_PAHT + "relation-template.xlsx");
|
|
|
}
|
|
|
-
|
|
|
+ //ExcelUtil.getWriter(file).getWorkbook().write(response.getOutputStream());
|
|
|
excelWriter = EasyExcel.write(response.getOutputStream()).withTemplate(file).build();
|
|
|
} catch (Exception e) {
|
|
|
log.error("下载报告-点表失败", e);
|