| | |
| | | import com.ruoyi.system.vo.CheckAcceptRecordVO; |
| | | import com.ruoyi.system.vo.TContractVO; |
| | | import com.ruoyi.web.controller.tool.NumberToChineseUtils; |
| | | import com.ruoyi.web.controller.tool.TencentCosUtil; |
| | | import com.ruoyi.web.controller.tool.WordUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.ServletOutputStream; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | |
| | | } |
| | | @Autowired |
| | | private WordUtil wordUtil; |
| | | @Autowired |
| | | private TencentCosUtil tencentCosUtil; |
| | | @ApiOperation(value = "生成合同附件") |
| | | @PostMapping("/set") |
| | | @Log(title = "生成合同附件", businessType = BusinessType.EXPORT) |
| | |
| | | } else { |
| | | fill(templateParam, "checkTime", ""); |
| | | } |
| | | |
| | | String url = tencentCosUtil.downLoadFileImg(contract.getSignature()); |
| | | return wordUtil.generatePdf( |
| | | "/usr/local/project/file/", |
| | | templateFileName, |
| | | templateParam, |
| | | "租赁合同", |
| | | "/usr/local/project/file/"); |
| | | "/usr/local/project/file/",url); |
| | | } |
| | | |
| | | private BigDecimal extracted(TContract contract,TContractDTO dto) { |