feiyu02
2022-07-04 c93ad66797e4830ccf4de81c1e8787ab90b22791
1. 承诺书pdf生产模块
已修改5个文件
已添加8个文件
891 ■■■■■ 文件已修改
pom.xml 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/common/pdf/DynamicParam.kt 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/common/pdf/GeneratePdfUtil.kt 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/common/pdf/PdfUtil.kt 82 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/CommitmentService.kt 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/CommitmentServiceImpl.kt 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/CommitmentController.kt 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/commitment-construction.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/pdfDemo.ftl 280 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/pdfDemo5.docx 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/temporary.html 280 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/test/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/CommitmentServiceImplTest.kt 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -28,6 +28,7 @@
        <!-- tk.mybatis -->
        <mapper.plugin>tk.mybatis.mapper.generator.MapperPlugin</mapper.plugin>
        <mapper.Mapper>tk.mybatis.mapper.common.Mapper</mapper.Mapper>
        <itext.version>7.2.2</itext.version>
    </properties>
    <dependencies>
@@ -267,6 +268,19 @@
            <artifactId>poi</artifactId>
            <version>4.1.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>4.1.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-excelant -->
<!--        <dependency>-->
<!--            <groupId>org.apache.poi</groupId>-->
<!--            <artifactId>poi-excelant</artifactId>-->
<!--            <version>5.2.2</version>-->
<!--        </dependency>-->
        <!--阿里云推送-->
        <dependency>
@@ -297,27 +311,31 @@
        <!-- pdf:start -->
        <!-- https://mvnrepository.com/artifact/com.itextpdf/itext7-core -->
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>5.5.13.3</version>
            <artifactId>itext7-core</artifactId>
            <version>${itext.version}</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.itextpdf.tool</groupId>
            <artifactId>xmlworker</artifactId>
            <version>5.5.13.3</version>
        </dependency>
        <!-- æ”¯æŒä¸­æ–‡ -->
        <!-- https://mvnrepository.com/artifact/com.itextpdf/html2pdf -->
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itext-asian</artifactId>
            <version>5.2.0</version>
            <artifactId>html2pdf</artifactId>
            <version>4.0.2</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/com.itextpdf/font-asian -->
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>font-asian</artifactId>
            <version>${itext.version}</version>
            <scope>test</scope>
        </dependency>
        <!-- æ”¯æŒcss样式渲染 -->
        <dependency>
            <groupId>org.xhtmlrenderer</groupId>
            <artifactId>flying-saucer-pdf-itext5</artifactId>
            <version>9.1.22</version>
            <version>9.1.16</version>
        </dependency>
        <!-- è½¬æ¢html为标准xhtml包 -->
        <dependency>
@@ -325,7 +343,12 @@
            <artifactId>jtidy</artifactId>
            <version>r938</version>
        </dependency>
        <!-- pdf:end -->
        <!-- https://mvnrepository.com/artifact/org.freemarker/freemarker -->
        <dependency>
            <groupId>org.freemarker</groupId>
            <artifactId>freemarker</artifactId>
            <version>2.3.31</version>
        </dependency>
    </dependencies>
src/main/kotlin/cn/flightfeather/supervision/common/pdf/DynamicParam.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,21 @@
package cn.flightfeather.supervision.common.pdf
import java.io.File
/**
 * @Description: ç”ŸæˆPDF参数
 * @author lgd
 * @date 2022å¹´4月27日 ä¸‹åˆ6:04:56
 */
data class DynamicParam(
    // æ¨¡ç‰ˆè·¯å¾„
    val templatePath: String,
    // æ¨¡æ¿æ–‡ä»¶å(.ftl结尾)
    val templateName: String,
    // ç”Ÿæˆè·¯å¾„
    val outPath: String,
    // ç”Ÿæˆæ–‡ä»¶å(.pdf结尾)
    val outName: String,
    // æ‰€éœ€æ–‡æœ¬å‚æ•°
    val param: Map<String, Any>
)
src/main/kotlin/cn/flightfeather/supervision/common/pdf/GeneratePdfUtil.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,107 @@
package cn.flightfeather.supervision.common.pdf
import com.itextpdf.html2pdf.ConverterProperties
import com.itextpdf.html2pdf.HtmlConverter
import com.itextpdf.layout.font.FontProvider
import com.itextpdf.text.pdf.BaseFont
import freemarker.template.Configuration
import org.xhtmlrenderer.pdf.ITextRenderer
import java.io.*
import javax.servlet.http.HttpServletResponse
/**
 * @Description: ç”ŸæˆPDF合同工具类
 */
object GeneratePdfUtil {
    private const val TEMPORARY_CONTRACT_HTML = "src/main/resources/templates/temporary.html"
    private const val SIMSUM_FILE = "src/main/resources/font/simsun.ttc"
    @Throws(Exception::class)
    fun generateContract(param: DynamicParam): String {
        // ç”Ÿæˆhtml合同
        generateHTML(param.templatePath, param.templateName, param.param)
        // æ ¹æ®html合同生成pdf合同
        generatePDF(param.outPath + param.outName)
        // åˆ é™¤ä¸´æ—¶html格式合同
//        removeFile(TEMPORARY_CONTRACT_HTML)
        return param.outPath + param.outName
    }
    /**
     * @Description ç”Ÿæˆhtml格式合同
     */
    @Throws(Exception::class)
    private fun generateHTML(templatePath: String, templateName: String, paramMap: Map<String, Any>) {
        val cfg = Configuration()
        cfg.defaultEncoding = "UTF-8"
        /**
         * 1.setClassForTemplateLoading(this.getClass(), "/HttpWeb");
         * åŸºäºŽç±»è·¯å¾„,HttpWeb包下的framemaker.ftl文件
         * 2.setDirectoryForTemplateLoading(new File("/template"));
         * åŸºäºŽæ–‡ä»¶ç³»ç»Ÿ,template目录下的文件
         * 3.setServletContextForTemplateLoading(request.getSession().getServletContext(), "/template");
         * åŸºäºŽServlet Context,指的是基于WebRoot下的template下的framemaker.ftl文件
         */
        cfg.setDirectoryForTemplateLoading(File(templatePath))
        // templateName.ftl为要装载的模板
        val template = cfg.getTemplate(templateName)
        val outHtmFile = File(TEMPORARY_CONTRACT_HTML)
        val out: Writer = BufferedWriter(OutputStreamWriter(FileOutputStream(outHtmFile)))
        // å°†å‚数输出到模版,并操作到HTML上
        template.process(paramMap, out)
        out.close()
    }
    /**
     * @Description æ ¹æ®html生成pdf格式合同
     */
    @Throws(Exception::class)
    private fun generatePDF(pdfUrl: String) {
        val htmFile = File(TEMPORARY_CONTRACT_HTML)
        val pdfFile = File(pdfUrl)
        println(pdfUrl)
//        val url = htmFile.toURI()
//        val os: OutputStream = FileOutputStream(pdfFile)
//        val renderer = ITextRenderer()
//        renderer.setDocument(url)
//        val fontResolver = renderer.fontResolver
//        // è§£å†³ä¸­æ–‡æ”¯æŒé—®é¢˜
//        fontResolver.addFont(SIMSUM_FILE, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED)
//        renderer.layout()
//        renderer.createPDF(os)
//        os.close()
        val p = ConverterProperties()
        p.fontProvider = FontProvider().apply {
//            this.addFont(SIMSUM_FILE)
            this.addDirectory("src/main/resources/font/")
        }
        HtmlConverter.convertToPdf(htmFile, pdfFile, p)
    }
    /**
     * @Description ç§»é™¤æ–‡ä»¶
     */
    private fun removeFile(fileUrl: String) {
        val file = File(fileUrl)
        file.delete()
    }
    @Throws(Exception::class)
    fun returnPdfStream(response: HttpServletResponse, pathName: String?) {
        response.contentType = "application/pdf"
        val file = File(pathName)
        if (file.exists()) {
            val `in` = FileInputStream(file)
            val out: OutputStream = response.outputStream
            val b = ByteArray(1024 * 5)
            var n: Int
            while (`in`.read(b).also { n = it } != -1) {
                out.write(b, 0, n)
            }
            out.flush()
            `in`.close()
            out.close()
        }
    }
}
src/main/kotlin/cn/flightfeather/supervision/common/pdf/PdfUtil.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,82 @@
package cn.flightfeather.supervision.common.pdf
import org.apache.poi.util.Units
import org.apache.poi.xwpf.usermodel.XWPFDocument
import org.apache.poi.xwpf.usermodel.XWPFParagraph
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import java.io.IOException
object PdfUtil {
    fun generateContract(dynamicParam: DynamicParam): String {
        val src = dynamicParam.templatePath+dynamicParam.templateName
        val out = dynamicParam.outPath + dynamicParam.outName
        val inputStream = FileInputStream(File(src))
        val xwpfDocument = XWPFDocument(inputStream)
        replace(xwpfDocument, dynamicParam.param)
        output(xwpfDocument, out)
        return out
    }
    /**
     * æ›¿æ¢æ®µè½ä¸­æŒ‡å®šçš„æ–‡æœ¬
     */
    fun replace(doc:XWPFDocument, params:Map<String, Any>) {
        try {
            setContent(doc.paragraphs, params)
            for (tab in doc.tables) {
                for (row in tab.rows) {
                    for (cell in row.tableCells) {
                        //注意,getParagraphs一定不能漏掉
                        //因为一个表格里面可能会有多个需要替换的文字
                        //如果没有这个步骤那么文字会替换不了
                        setContent(cell.paragraphs, params)
                    }
                }
            }
        } catch (e: IOException) {
            e.printStackTrace()
        }
    }
    private fun setContent(paragraphs: List<XWPFParagraph>, params: Map<String, Any>) {
        for (p in paragraphs) {
            for (r in p.runs) {
                //需要替换的文本
                val text = r.getText(0)
                //替换指定的文本
                for (key in params.keys) {
                    if (text != null && text == key) {
                        //替换的时候要注意,setText是有两个参数的
                        //第一个是替换的文本,第二个是从哪里开始替换
                        //0是替换全部,如果不设置那么默认就是从原文字
                        //结尾开始追加
                        val v = params[key]
                        when (v) {
                            is String -> r.setText(v, 0)
                            is File -> {
                                val input = FileInputStream(v)
                                val pic = r.addPicture(input, XWPFDocument.PICTURE_TYPE_JPEG, v.name, Units.toEMU(40.0), Units.toEMU(40.0))
                                input.close()
                            }
                        }
                    }
                }
            }
        }
    }
    fun output(doc: XWPFDocument, outSrc: String) {
        doc.write(FileOutputStream(outSrc))
        doc.close()
    }
}
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/CommitmentService.kt
@@ -9,4 +9,6 @@
    fun getLetterOfCommitment(userId: String, page: Int, perPage: Int, response: HttpServletResponse): List<Commitment>
    fun uploadLetterOfCommitment(userId: String, commitmentVoList: String, files: Array<MultipartFile>): Boolean
    fun createLetterOfCommitment(userId: String, params: MutableMap<String, Any>): String
}
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/CommitmentServiceImpl.kt
@@ -1,5 +1,8 @@
package cn.flightfeather.supervision.lightshare.service.Impl
import cn.flightfeather.supervision.common.pdf.DynamicParam
import cn.flightfeather.supervision.common.pdf.GeneratePdfUtil
import cn.flightfeather.supervision.common.pdf.PdfUtil
import cn.flightfeather.supervision.domain.entity.Commitment
import cn.flightfeather.supervision.domain.mapper.CommitmentMapper
import cn.flightfeather.supervision.infrastructure.utils.DateUtil
@@ -76,4 +79,14 @@
        return commitmentVos.size == success
    }
    override fun createLetterOfCommitment(userId: String, params: MutableMap<String, Any>): String {
        val templatePath = (Thread.currentThread().contextClassLoader?.getResource("/")?.path ?: "src/main") + "/resources/templates/"
        val templateName = "pdfDemo.ftl"
        val contractPath = (Thread.currentThread().contextClassLoader?.getResource("/")?.path ?: "src/main") + "/resources/templates/"
        val contractName = "pdfDemo5.pdf"
        val param = DynamicParam(templatePath, templateName, contractPath, contractName, params)
        GeneratePdfUtil.generateContract(param)
        return ""
    }
}
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/CommitmentController.kt
@@ -34,4 +34,11 @@
        @ApiParam(value = "承诺书信息json") @RequestParam("params") commitmentVoList: String,
        @ApiParam(value = "承诺书图片") @RequestPart("images") files: Array<MultipartFile>
    ) = commitmentService.uploadLetterOfCommitment(userId, commitmentVoList, files)
    @ApiOperation(value = "生产承诺书")
    @PostMapping("/letter/create")
    fun createLetterOfCommitment(
        @ApiParam(value = "用户id") @RequestParam userId: String,
        @ApiParam(value = "承诺书参数") @RequestBody params: MutableMap<String, Any>
    ) = commitmentService.createLetterOfCommitment(userId, params)
}
src/main/resources/application.yml
@@ -12,14 +12,14 @@
#    password: 123456
    #-TestEnd-
    url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
    username: ledger
    password: ledger_fxxchackxr
#    url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
#    username: ledger
#    password: ledger_fxxchackxr
    #   å¼€å‘远程服务器
#    url: jdbc:mysql://47.100.191.150:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
#    username: remoteU1
#    password: eSoF8DnzfGTlhAjE
    url: jdbc:mysql://47.100.191.150:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
    username: remoteU1
    password: eSoF8DnzfGTlhAjE
    initialSize: 5
    minIdle: 5
src/main/resources/templates/commitment-construction.docx
Binary files differ
src/main/resources/templates/pdfDemo.ftl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,280 @@
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="generator" content="Aspose.Words for .NET 15.1.0.0" />
    <title></title>
</head>
<body>
    <div>
        <p style="font-size:18pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
            <!-- <span style=" font-size:18pt; font-weight:bold">上海市</span>
            <span style=" font-size:18pt; font-weight:bold">徐汇区</span> -->
            <span style=" font-size:18pt; font-weight:bold">建设工地</span>
            <span style=" font-size:18pt; font-weight:bold">环境信用承诺书</span>
        </p>
        <div style="text-align:center">
            <table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 auto; width:501.7pt">
                <tr style="height:24.6pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">施工</span><span
                                style=" font-size:12pt">单位名称</span>
                        </p>
                    </td>
                    <td colspan="3"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:372.5pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">${Department}</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:25.75pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">统一社会信用代码</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:133.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">${SocialCode}</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:97.8pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">工地</span><span
                                style=" font-size:12pt">报建号</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:119.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">${ConstructionNo}</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:24.95pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表</span><span
                                style=" font-size:12pt">姓名</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:133.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">${JuridicalPerson}</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:97.8pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表</span><span
                                style=" font-size:12pt">身份证号</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:119.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">${IdNo}</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:42.7pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0"><span
                                style=" font-size:12pt">环境信用承诺类型</span></p>
                    </td>
                    <td colspan="3"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:372.5pt">
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">${Type1}环保主体责任承诺;${Type2}环境行政许可事项;  </span></p>
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">${Type3}环保专项资金或其他资金补助;${Type4}其他环保申报事项</span></p>
                    </td>
                </tr>
                <tr style="height:88.5pt">
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:31.5pt">
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">承</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">诺</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">事</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">项</span>
                        </p>
                    </td>
                    <td colspan="4"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:top; width:447.85pt">
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">为践行绿色发展理念,努力营造诚实守信的社会环境,落实</span><span
                                style=" font-size:12pt">施工</span><span
                                style=" font-size:12pt">单位环保责任,</span><span
                                style=" font-size:12pt">降低因环境等因素造成的</span><span
                                style=" font-size:12pt">扬尘污染</span><span
                                style=" font-size:12pt">隐患和居民纠纷</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">确保</span><span
                                style=" font-size:12pt">建筑业</span><span
                                style=" font-size:12pt">健康有序发展</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">本单位(或本人)自愿作出如下承诺:</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span
                                style=" font-size:12pt">一、严格遵守国家、市、区有关环境保护法律、法规、规章、标准和政策规定,积极履行环境保护社会责任。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">二、</span><span
                                style=" font-size:12pt">以</span><span
                                style=" font-size:12pt">《上海市环境保护条例》</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">《上海市大气污染防治条例》</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">《上海市建设工程文明施工管理规定》</span><span
                                style=" font-size:12pt">等要求为依据,科学制定建设工地扬尘污染防治方案并公示,建立健全企业内部扬尘防治核查机制,安排专人负责扬尘防治事宜,及时记录、保存车辆进出、冲洗、洒水等环保台账</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">三、</span><span
                                style=" font-size:12pt">建设施工应符合</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">文明施工</span><span
                                style=" font-size:12pt">标准》(</span><span
                                style=" font-size:12pt">DG/TJ 08-2102-2019 )</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">科学配置扬尘防治设施设备(高压冲洗设备、自动喷淋装置、雾炮车、洒水车等),依托技防措施开展绿色施工,并加强对噪声控制、光污染控制、强腐蚀性化学品等其他污染控制,</span><span
                                style=" font-size:12pt">防止对周边居民造成生活环境污染。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">四、严格执行</span><span
                                style=" font-size:12pt">扬尘治理六个百分百</span><span
                                style=" font-size:12pt">要求</span><span
                                style=" font-size:12pt">:</span><span
                                style=" font-size:12pt">1、施工工地周边100%围挡</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">2、出入车辆100%冲洗</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">3、拆迁工地100%湿法作业</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">4、渣土车辆100%密闭运输</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">5、施工现场地面100%硬化</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">6、物料堆放100%覆盖</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">五</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">遵守关于印发《上海市房屋建筑工地扬尘污染防治工作方案》的通知 ï¼ˆæ²ªå»ºè´¨å®‰è”〔2019〕208 å·
                                ï¼‰ç›¸å…³è§„定,</span><span style=" font-size:12pt">安装市住房城乡建设管理委和市生态环境局官方</span>
                        </p>
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">网站公示公告栏中</span><span
                                style=" font-size:12pt">最新</span><span
                                style=" font-size:12pt">公布的</span><span
                                style=" font-size:12pt">合格供应商提供的扬尘在线监测设备,须符合</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">上海市建筑施工</span><span
                                style=" font-size:12pt">颗粒物</span><span
                                style=" font-size:12pt">与噪声</span><span
                                style=" font-size:12pt">在线监测技术规范》</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">委托规范服务单位定期运维,及时记录相关台账,确保其正常使用</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">设备拆除、移动或停运须提前向主管部门申请或备案。</span></p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">六、扬尘在线监测设备安装后须确保稳定运行,并</span><span
                                style=" font-size:12pt">及时与生态环境部门油烟监控系统联网,</span><span
                                style=" font-size:12pt">依据</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">上海市扬尘在线监测数据执法应用规定</span><span
                                style=" font-size:12pt">》</span><span
                                style=" font-size:12pt">定期审核监测数据</span><span
                                style=" font-size:12pt">,不超标排放</span><span
                                style=" font-size:12pt">;扬尘监测数据坚决不弄虚作假,不触犯</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">环境监测数据弄虚作假行为判定及处理办法</span><span
                                style=" font-size:12pt">》</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">七、不使用未上环保拍照的非道路机械,不使用非法渠道或不达标柴油</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">八</span><span
                                style=" font-size:12pt">、同意本承诺向社会公开,并自觉接受政府、行业组织、主管部门委托第三方监管单位、社会公众、新闻舆论的监督。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">&#xa0;</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:26.25pt; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表或责</span><span
                                style=" font-size:12pt">任人(签字): ${Sign}     å•位(盖章) ${Seal}</span>
                        </p>
                        <br /><br /><br /><br />
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:right; text-indent:28.5pt; widows:0">
                            <span style=" font-size:12pt">${Year}年 ${Month} æœˆÂ ${Day} æ—¥</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:0pt">
                    <td style="width:42.3pt; border:none"></td>
                    <td style="width:75.35pt; border:none"></td>
                    <td style="width:144.35pt; border:none"></td>
                    <td style="width:108.6pt; border:none"></td>
                    <td style="width:130.35pt; border:none"></td>
                </tr>
            </table>
        </div>
        <p style="font-size:10.5pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
            <span style=" font-size:10.5pt">&#xa0;</span>
        </p>
    </div>
</body>
</html>
src/main/resources/templates/pdfDemo5.docx
Binary files differ
src/main/resources/templates/temporary.html
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,280 @@
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="generator" content="Aspose.Words for .NET 15.1.0.0" />
    <title></title>
</head>
<body>
    <div>
        <p style="font-size:18pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
            <!-- <span style=" font-size:18pt; font-weight:bold">上海市</span>
            <span style=" font-size:18pt; font-weight:bold">徐汇区</span> -->
            <span style=" font-size:18pt; font-weight:bold">建设工地</span>
            <span style=" font-size:18pt; font-weight:bold">环境信用承诺书</span>
        </p>
        <div style="text-align:center">
            <table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 auto; width:501.7pt">
                <tr style="height:24.6pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">施工</span><span
                                style=" font-size:12pt">单位名称</span>
                        </p>
                    </td>
                    <td colspan="3"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:372.5pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">某某企业</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:25.75pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">统一社会信用代码</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:133.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">9283987983179</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:97.8pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">工地</span><span
                                style=" font-size:12pt">报建号</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:119.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">13u981479835</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:24.95pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表</span><span
                                style=" font-size:12pt">姓名</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:133.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">某某某</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:97.8pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表</span><span
                                style=" font-size:12pt">身份证号</span>
                        </p>
                    </td>
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:119.55pt">
                        <p
                            style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:12pt">12314876128736128736</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:42.7pt">
                    <td colspan="2"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:106.85pt">
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0"><span
                                style=" font-size:12pt">环境信用承诺类型</span></p>
                    </td>
                    <td colspan="3"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:middle; width:372.5pt">
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">□环保主体责任承诺;□环境行政许可事项;  </span></p>
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">□环保专项资金或其他资金补助;□其他环保申报事项</span></p>
                    </td>
                </tr>
                <tr style="height:88.5pt">
                    <td
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:middle; width:31.5pt">
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">承</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">诺</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">事</span>
                        </p>
                        <p
                            style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
                            <span style=" font-size:14pt">项</span>
                        </p>
                    </td>
                    <td colspan="4"
                        style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.4pt; padding-right:5.03pt; vertical-align:top; width:447.85pt">
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">为践行绿色发展理念,努力营造诚实守信的社会环境,落实</span><span
                                style=" font-size:12pt">施工</span><span
                                style=" font-size:12pt">单位环保责任,</span><span
                                style=" font-size:12pt">降低因环境等因素造成的</span><span
                                style=" font-size:12pt">扬尘污染</span><span
                                style=" font-size:12pt">隐患和居民纠纷</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">确保</span><span
                                style=" font-size:12pt">建筑业</span><span
                                style=" font-size:12pt">健康有序发展</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">本单位(或本人)自愿作出如下承诺:</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span
                                style=" font-size:12pt">一、严格遵守国家、市、区有关环境保护法律、法规、规章、标准和政策规定,积极履行环境保护社会责任。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">二、</span><span
                                style=" font-size:12pt">以</span><span
                                style=" font-size:12pt">《上海市环境保护条例》</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">《上海市大气污染防治条例》</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">《上海市建设工程文明施工管理规定》</span><span
                                style=" font-size:12pt">等要求为依据,科学制定建设工地扬尘污染防治方案并公示,建立健全企业内部扬尘防治核查机制,安排专人负责扬尘防治事宜,及时记录、保存车辆进出、冲洗、洒水等环保台账</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">三、</span><span
                                style=" font-size:12pt">建设施工应符合</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">文明施工</span><span
                                style=" font-size:12pt">标准》(</span><span
                                style=" font-size:12pt">DG/TJ 08-2102-2019 )</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">科学配置扬尘防治设施设备(高压冲洗设备、自动喷淋装置、雾炮车、洒水车等),依托技防措施开展绿色施工,并加强对噪声控制、光污染控制、强腐蚀性化学品等其他污染控制,</span><span
                                style=" font-size:12pt">防止对周边居民造成生活环境污染。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">四、严格执行</span><span
                                style=" font-size:12pt">扬尘治理六个百分百</span><span
                                style=" font-size:12pt">要求</span><span
                                style=" font-size:12pt">:</span><span
                                style=" font-size:12pt">1、施工工地周边100%围挡</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">2、出入车辆100%冲洗</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">3、拆迁工地100%湿法作业</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">4、渣土车辆100%密闭运输</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">5、施工现场地面100%硬化</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">6、物料堆放100%覆盖</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">五</span><span
                                style=" font-size:12pt">、</span><span
                                style=" font-size:12pt">遵守关于印发《上海市房屋建筑工地扬尘污染防治工作方案》的通知 ï¼ˆæ²ªå»ºè´¨å®‰è”〔2019〕208 å·
                                ï¼‰ç›¸å…³è§„定,</span><span style=" font-size:12pt">安装市住房城乡建设管理委和市生态环境局官方</span>
                        </p>
                        <p style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span
                                style=" font-size:12pt">网站公示公告栏中</span><span
                                style=" font-size:12pt">最新</span><span
                                style=" font-size:12pt">公布的</span><span
                                style=" font-size:12pt">合格供应商提供的扬尘在线监测设备,须符合</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">上海市建筑施工</span><span
                                style=" font-size:12pt">颗粒物</span><span
                                style=" font-size:12pt">与噪声</span><span
                                style=" font-size:12pt">在线监测技术规范》</span><span
                                style=" font-size:12pt">,</span><span
                                style=" font-size:12pt">委托规范服务单位定期运维,及时记录相关台账,确保其正常使用</span><span
                                style=" font-size:12pt">;</span><span
                                style=" font-size:12pt">设备拆除、移动或停运须提前向主管部门申请或备案。</span></p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">六、扬尘在线监测设备安装后须确保稳定运行,并</span><span
                                style=" font-size:12pt">及时与生态环境部门油烟监控系统联网,</span><span
                                style=" font-size:12pt">依据</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">上海市扬尘在线监测数据执法应用规定</span><span
                                style=" font-size:12pt">》</span><span
                                style=" font-size:12pt">定期审核监测数据</span><span
                                style=" font-size:12pt">,不超标排放</span><span
                                style=" font-size:12pt">;扬尘监测数据坚决不弄虚作假,不触犯</span><span
                                style=" font-size:12pt">《</span><span
                                style=" font-size:12pt">环境监测数据弄虚作假行为判定及处理办法</span><span
                                style=" font-size:12pt">》</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">七、不使用未上环保拍照的非道路机械,不使用非法渠道或不达标柴油</span><span
                                style=" font-size:12pt">。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">八</span><span
                                style=" font-size:12pt">、同意本承诺向社会公开,并自觉接受政府、行业组织、主管部门委托第三方监管单位、社会公众、新闻舆论的监督。</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
                            <span style=" font-size:12pt">&#xa0;</span>
                        </p>
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:26.25pt; widows:0">
                            <span style=" font-size:12pt">法人</span><span
                                style=" font-size:12pt">代表或责</span><span
                                style=" font-size:12pt">任人(签字): 签名     å•位(盖章) ç›–ç« </span>
                        </p>
                        <br /><br /><br /><br />
                        <p
                            style="line-height:20pt; margin:0pt 0pt 10pt; orphans:0; text-align:right; text-indent:28.5pt; widows:0">
                            <span style=" font-size:12pt">2022年 06 æœˆÂ 29 æ—¥</span>
                        </p>
                    </td>
                </tr>
                <tr style="height:0pt">
                    <td style="width:42.3pt; border:none"></td>
                    <td style="width:75.35pt; border:none"></td>
                    <td style="width:144.35pt; border:none"></td>
                    <td style="width:108.6pt; border:none"></td>
                    <td style="width:130.35pt; border:none"></td>
                </tr>
            </table>
        </div>
        <p style="font-size:10.5pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
            <span style=" font-size:10.5pt">&#xa0;</span>
        </p>
    </div>
</body>
</html>
src/test/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/CommitmentServiceImplTest.kt
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,40 @@
package cn.flightfeather.supervision.lightshare.service.Impl
import cn.flightfeather.supervision.lightshare.service.CommitmentService
import org.junit.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit.jupiter.SpringExtension
import org.springframework.test.context.junit4.SpringRunner
@RunWith(SpringRunner::class)
@ExtendWith(SpringExtension::class)
@SpringBootTest
class CommitmentServiceImplTest {
    @Autowired
    lateinit var commitmentService: CommitmentService
    @Test
    fun createLetterOfCommitment() {
        val r = commitmentService.createLetterOfCommitment("", mutableMapOf<String, Any>().apply {
            put("Department", "某某企业")
            put("SocialCode", "9283987983179")
            put("ConstructionNo", "13u981479835")
            put("JuridicalPerson", "某某某")
            put("IdNo", "12314876128736128736")
            put("Type1", "□")
            put("Type2", "□")
            put("Type3", "□")
            put("Type4", "□")
            put("Sign", "签名")
            put("Seal", "盖章")
            put("Year", "2022")
            put("Month", "06")
            put("Day", "29")
        })
        println(r)
    }
}