Merge branch 'jng-QuestionnairePDF-0311' into dev

This commit is contained in:
JNG 2026-03-11 20:13:01 +08:00
commit bc01771f79

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,