Browse Source

模板附件

aQiu6 3 months ago
parent
commit
1d0626c408

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

@@ -50,10 +50,10 @@ public class IndexController {
         // 将图片转换为 Base64 编码
 //        String imageBase64 = DocxGenerator.convertImageToBase64("G:\\Code\\new\\fxy-tool\\src\\main\\resources\\pic1.png");
         Attachment attach = new Attachment();
-        attach.setFilePath("https://yyc3-1321096020.cos.ap-beijing.myqcloud.com/declaration/20250313/dc8220a3a722486d9ccd632972a3ab15.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250317T075010Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86399&X-Amz-Credential=AKIDRilauFg4fDfE9B6tJoNxTvHSdovqXBfw%2F20250317%2Fap-beijing%2Fs3%2Faws4_request&X-Amz-Signature=e2b1cbe340254b2b63c97ffadeee183b52409f5fa77384e68ed7298b501f8666");
+        attach.setFilePath("https://manage.xiuqiuengineering.com/api//profile/upload/2024/04/24/2024/04/26/banner.jpg");
         List<Attachment> attachments= Arrays.asList(attach);
-
         basicInfo.setRelatedEntitiesImage(attachments);
+
         PublicRecord publicRecord=new PublicRecord();
         DishonestPersonsInfoVO person=new DishonestPersonsInfoVO();
         person.setInDate("2025-03-08");
@@ -74,6 +74,7 @@ public class IndexController {
         financialInfo.setFinancialData4(new FinancialData());
         financialInfo.setFinancialScore(new FinancialScore());
         ProjectInfo projectInfo=new ProjectInfo();
+        projectInfo.setFiles(attachments);
         DocumentVo documentVo=new DocumentVo();
 
         ServiceProviderAuditReport report=new ServiceProviderAuditReport();//基金会数据
@@ -84,6 +85,7 @@ public class IndexController {
         report.setFinancialInfo(financialInfo);
         report.setProjectInfo(projectInfo);
         report.setDocumentVo(documentVo);
+        report.setInterestConflict(attachments);
 
         PlatformReport platformReport=new PlatformReport();//平台报告数据
         platformReport.setServiceProviderInfo(serviceProviderInfo);

+ 24 - 15
src/main/resources/foundation_template.xml

@@ -14764,7 +14764,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
        <#list basicInfo.relatedEntitiesImage as item><#if item.base64??>
        <#list item.base64 as img>
         <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
-        <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
+        <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:auto;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
         <v:imagedata src="wordml://${item.fileName!''}" o:title="wordml://${item.fileName!''}"/>
@@ -28036,7 +28036,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t><#if projectInfo?? && projectInfo.files?? && projectInfo.files?size gt 0>
         <#list projectInfo.files as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -28604,6 +28604,15 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     </w:rPr>
                     <w:t><#if interestConflict?? && interestConflict?size gt 0>
         <#list interestConflict as item>
+        <#if item.base64??><#list item.base64 as img>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
+        <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
+        <v:fill on="f" focussize="0,0"/>
+        <v:stroke on="f"/>
+        <v:imagedata src="wordml://${item.fileName!''}" o:title="wordml://${item.fileName!''}"/>
+        <o:lock v:ext="edit" aspectratio="t"/>
+        <w10:wrap type="none"/>
+        <w10:anchorlock/></v:shape></w:pict></#list></#if>
         </#list>
 </#if></w:t>
                 </w:r>
@@ -28864,7 +28873,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.foundationLegalPersonRegistrationCertificate?? && documentVo.foundationLegalPersonRegistrationCertificate?size gt 0>
         <#list documentVo.foundationLegalPersonRegistrationCertificate as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -28921,7 +28930,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.foundationLegalPersonRegistrationCertificateLatest?? && documentVo.foundationLegalPersonRegistrationCertificateLatest?size gt 0>
         <#list documentVo.foundationLegalPersonRegistrationCertificateLatest as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -28965,7 +28974,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.foundationLegalPersonRegistrationCertificateLatest?? && documentVo.bankAccountCertificateOrCreditCertificate?size gt 0>
         <#list documentVo.bankAccountCertificateOrCreditCertificate as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29023,7 +29032,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.evaluationLevelQualificationCertificate?? && documentVo.evaluationLevelQualificationCertificate?size gt 0>
         <#list documentVo.evaluationLevelQualificationCertificate as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29085,7 +29094,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.completeArticlesOfAssociationCopy?? && documentVo.completeArticlesOfAssociationCopy?size gt 0>
         <#list documentVo.completeArticlesOfAssociationCopy as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29135,7 +29144,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.topTenDonorList?? && documentVo.topTenDonorList?size gt 0>
         <#list documentVo.topTenDonorList as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29179,7 +29188,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.topTenSpenderList?? && documentVo.topTenSpenderList?size gt 0>
         <#list documentVo.topTenSpenderList as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29234,7 +29243,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t><#if documentVo.organizationManagement?? && documentVo.organizationManagement?size gt 0>
         <#list documentVo.organizationManagement as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29338,7 +29347,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.relatedEntitySituation?? && documentVo.relatedEntitySituation?size gt 0>
         <#list documentVo.relatedEntitySituation as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29381,7 +29390,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.organizationPrincipal?? && documentVo.organizationPrincipal?size gt 0>
         <#list documentVo.organizationPrincipal as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29425,7 +29434,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.projectInformation?? && documentVo.projectInformation?size gt 0>
         <#list documentVo.projectInformation as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29469,7 +29478,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.organizationalStructureScan?? && documentVo.organizationalStructureScan?size gt 0>
         <#list documentVo.organizationalStructureScan as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>
@@ -29538,7 +29547,7 @@ fmppOBQAc+lHWiiqAMnvSDk5FLRQFwoxRRQFz//Z
                     <w:t> <#if documentVo.overallGuaranteeStatement?? && documentVo.overallGuaranteeStatement?size gt 0>
         <#list documentVo.overallGuaranteeStatement as item>
         <#if item.base64??><#list item.base64 as img>
-        <w:pict><w:binData w:name="wordml://{img_index}${item.fileName!''}">${img!''}</w:binData>
+        <w:pict><w:binData w:name="wordml://${item.fileName!''}">${img!''}</w:binData>
         <v:shape id="_x0000_s1032" o:spt="75" alt="" type="#_x0000_t75" style="height:645.3pt;width:456.5pt;" filled="f" o:preferrelative="t" stroked="f" coordsize="21600,21600"><v:path/>
         <v:fill on="f" focussize="0,0"/>
         <v:stroke on="f"/>