aQiu6 3 сар өмнө
parent
commit
c40a1b54bb

BIN
jijinhui.docx


+ 6 - 0
pom.xml

@@ -25,6 +25,12 @@
                 <groupId>org.docx4j</groupId>
                 <artifactId>docx4j-JAXB-Internal</artifactId>
                 <version>8.3.14</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.apache.commons</groupId>
+                        <artifactId>commons-compress</artifactId>
+                    </exclusion>
+                </exclusions>
             </dependency>
             <dependency>
                 <groupId>org.docx4j</groupId>

+ 2 - 0
src/main/java/org/example/mybatisplus/Controller/IndexController.java

@@ -33,6 +33,7 @@ public class IndexController {
         // todo:
         ServiceProviderInfo serviceProviderInfo=new ServiceProviderInfo();
         serviceProviderInfo.setName("海潮基金会");
+        serviceProviderInfo.setType("基金会");
         serviceProviderInfo.setReportDate("2025-03-11");
         AuditResult auditResult=new AuditResult();
         auditResult.setAuditDate("2025-03-11");
@@ -105,6 +106,7 @@ public class IndexController {
         ServiceProviderAuditReport report=new ServiceProviderAuditReport();
         report.setServiceProviderInfo(serviceProviderInfo);
         report.setBasicInfo(basicInfo);
+        report.setAuditResult(auditResult);
         try {
             JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(report));
             // 生成Word文档

+ 0 - 3
src/main/java/org/example/mybatisplus/module/BasicInfo.java

@@ -50,9 +50,6 @@ public class BasicInfo {
     private List<SuperiorAuthority> superiorAuthority; // 直属上级机关(2.2)
     private Attachment relatedEntitiesImage;            // ${image:实体关联情况}(2.3)
 
-    private String authorityName;  // ${tableRow:直属机关}
-    private String nature;         // 性质
-
     // 经营情况子类
     private String foundationCertReceived;    // ${经营情况:《基金会法人登记证书》:相关资料是否收到}
     private String renzcode;               // ${认证代码}

+ 6 - 2
src/main/java/org/example/mybatisplus/module/vo/BasicInfoCheck.java

@@ -2,12 +2,16 @@ package org.example.mybatisplus.module.vo;
 
 import lombok.Data;
 
-// 基本信息风险提示
+// 审查内容
 @Data
 public class BasicInfoCheck {
     private String name;      //
     private String desc;      //
     private String fact;     // 
     private String result;      //
-    private Long score;      // 
+    private Long score;      //
+    // 复核结果
+    private String reviewResult;
+    // 复核评分
+    private double reviewScore;
 }

+ 1 - 1
src/main/java/org/example/mybatisplus/module/vo/SuperiorAuthority.java

@@ -9,5 +9,5 @@ import lombok.Data;
 public class SuperiorAuthority {
     //直属机关
     private final String sname;
-    private final String xingzhi;
+    private final String nature;
 }

+ 3 - 0
src/main/java/org/example/mybatisplus/tools/WordPoiExporter.java

@@ -203,6 +203,9 @@ public class WordPoiExporter {
     }
     public static void convert(String inputPath, String outputPath) {
         try {
+            // 设置类加载器
+            Thread.currentThread().setContextClassLoader(WordPoiExporter.class.getClassLoader());
+
             // 加载 DOCX 文件
             WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new File(inputPath));