Update questionnaireSurvey.go
This commit is contained in:
parent
d0f87bcc76
commit
af15840755
@ -11,6 +11,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
m "fonchain-fiee/pkg/model"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
@ -74,7 +75,7 @@ func QuestionnaireSurveyCreate(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
templateDir := "./data/满意度调成报告模板.pdf"
|
templateDir := "./data/满意度调成报告模板.pdf"
|
||||||
outputPath := "/data/" + "questionnaire_" + uuid.NewString() + ".pdf"
|
outputPath := m.MediaPath + "questionnaire_" + uuid.NewString() + ".pdf"
|
||||||
err = utils.QuestionnaireSurveyPDF(templateDir, outputPath, &model.QuestionnairePDFData{
|
err = utils.QuestionnaireSurveyPDF(templateDir, outputPath, &model.QuestionnairePDFData{
|
||||||
//CustomerNum: surveyInfo.BundleInfo.,
|
//CustomerNum: surveyInfo.BundleInfo.,
|
||||||
CustomerName: surveyInfo.UserName,
|
CustomerName: surveyInfo.UserName,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user