|
@@ -28,12 +28,12 @@ import java.util.*;
|
|
|
public class IndexController {
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
|
|
|
- String wordExportpath = System.getProperty("user.dir")+File.separator+ "jijinhui1.docx";
|
|
|
+ String wordExportpath = System.getProperty("user.dir")+File.separator+ "jijinhui1.xml";
|
|
|
String pdfFilePath =System.getProperty("user.dir")+File.separator+ "download.pdf";
|
|
|
|
|
|
ServiceProviderInfo serviceProviderInfo=new ServiceProviderInfo();
|
|
|
- serviceProviderInfo.setName("海潮基金会");
|
|
|
- serviceProviderInfo.setType("基金会");
|
|
|
+ serviceProviderInfo.setName("海潮平台");
|
|
|
+ serviceProviderInfo.setType("平台");
|
|
|
serviceProviderInfo.setReportDate("2025-03-11");
|
|
|
AuditResult auditResult=new AuditResult();
|
|
|
auditResult.setAuditDate("2025-03-11");
|
|
@@ -182,6 +182,7 @@ public class IndexController {
|
|
|
"哈哈哈",
|
|
|
"测试"
|
|
|
));
|
|
|
+ registrationInfo.setRelatedEntitiesImage(attachments);
|
|
|
platformReport.setRegistrationInfo(registrationInfo);
|
|
|
platformReport.setPublicRecord(publicRecord);
|
|
|
financialInfo.setAntiBribery(new PublicRecordScore());
|
|
@@ -209,7 +210,7 @@ public class IndexController {
|
|
|
//平台模板platform_template.xml
|
|
|
//学协会模板association_template.xml
|
|
|
// 生成Word文档
|
|
|
- DocxGenerator.init(report,"foundation_template.xml",wordExportpath);
|
|
|
+ DocxGenerator.init(platformReport,"platform_template.xml",wordExportpath);
|
|
|
// 将Word文档转换为PDF
|
|
|
WordToPdfUtil.wordToPdf(wordExportpath,pdfFilePath);
|
|
|
} catch (Exception e) {
|