|
@@ -662,8 +662,11 @@ public class PurchContractElectronicInfoServiceImpl extends ServiceImpl<PurchCon
|
|
|
public ResponseEntity<Object> downloadReportUrl(Long managementId, HttpServletResponse res) throws IOException {
|
|
|
String fileName = "出证文件.zip";
|
|
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1");
|
|
|
- res.setContentType("application/zip");
|
|
|
- res.setHeader("Content-disposition", String.format("attachment; filename=" + fileName));
|
|
|
+// res.setContentType("application/zip");
|
|
|
+// res.setHeader("Content-Type", "application/vnd.ms-exce");
|
|
|
+// res.setHeader("Content-Disposition", "attachment;filename=" + java.net.URLEncoder.encode(fileName, "UTF-8"));
|
|
|
+// res.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
+// res.setHeader("Content-disposition", String.format("attachment; filename=" + fileName));
|
|
|
PurchContractBasicInfo purchContractBasicInfo = purchContractBasicInfoService
|
|
|
.lambdaQuery().eq(PurchContractBasicInfo::getPurchContractManagementId,managementId).one();
|
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|