| | |
| | | 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 |
| | |
| | | |
| | | 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 "" |
| | | } |
| | | } |