Compare commits

...

2 Commits

Author SHA1 Message Date
JNG
bc01771f79 Merge branch 'jng-QuestionnairePDF-0311' into dev 2026-03-11 20:13:01 +08:00
JNG
d0f87bcc76 Update questionnaireSurvey.go 2026-03-11 20:12:55 +08:00

View File

@ -12,6 +12,7 @@ import (
"time"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
)
func IsSendSurvey(c *gin.Context) {
@ -73,7 +74,7 @@ func QuestionnaireSurveyCreate(c *gin.Context) {
return
}
templateDir := "./data/满意度调成报告模板.pdf"
outputPath := "/data/questionnaire/" + req.UserTel + time.Now().Format("20060102150405") + ".pdf"
outputPath := "/data/" + "questionnaire_" + uuid.NewString() + ".pdf"
err = utils.QuestionnaireSurveyPDF(templateDir, outputPath, &model.QuestionnairePDFData{
//CustomerNum: surveyInfo.BundleInfo.,
CustomerName: surveyInfo.UserName,