增加评选号等多个字段

This commit is contained in:
孙肖扬 2025-03-10 16:23:58 +08:00
parent 5df2b5371e
commit cb7512610b

View File

@ -160,7 +160,7 @@ func ExportRegister(c *gin.Context) {
resp.Data = []*exhibition.ExportInfo{}
}
columns := []string{"初评评选号", "复评评选号", "画家姓名", "性别", "手机号", "身份证号", "通讯地址", "身份证照片", "本人近照", "省份", "作品名称", "作品类型", "画作尺寸", "报名时间", "更新时间"}
exportFileName := fmt.Sprintf("%d.xlsx", time.Now().UnixMilli())
exportFileName := fmt.Sprintf("国展报名%s.xlsx", time.Now().Format("20060102"))
filePath := fmt.Sprintf("./runtime/%s", exportFileName)
data := make([]interface{}, 0)
for _, v := range resp.Data {