This commit is contained in:
蒋海成 2025-03-12 11:01:05 +08:00
parent 75c336209d
commit baeaf74d8c

View File

@ -118,7 +118,7 @@ func InsertSignature(templatePath string, outputPath string, signImgPath string)
return nil return nil
} }
func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, contractNo, buyerName, idNo, telNum, address string, price float32, contractDuration int) error { func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, contractNo, buyerName, idNo, telNum, address string, price float32, contractDuration int64) error {
pdf := gopdf.GoPdf{} pdf := gopdf.GoPdf{}
pdf.Start(gopdf.Config{PageSize: *gopdf.PageSizeA4}) pdf.Start(gopdf.Config{PageSize: *gopdf.PageSizeA4})
@ -184,7 +184,7 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co
pdf.Cell(nil, price) pdf.Cell(nil, price)
// 写 有效期 // 写 有效期
t := time.Now().AddDate(contractDuration, 0, 0) t := time.Now().AddDate(int(contractDuration), 0, 0)
pdf.SetPage(limitTimePage) pdf.SetPage(limitTimePage)
pdf.SetX(327) pdf.SetX(327)
pdf.SetY(358) pdf.SetY(358)