Update questionnaireSurvey.go

This commit is contained in:
JNG 2026-03-11 20:12:55 +08:00
parent f3df638d8d
commit d0f87bcc76

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,