Compare commits
No commits in common. "b64e47fc5f60123579b72dc043464b74e5c1737b" and "91b8ac78e8c8cf61dd058bf1939d7765ca9c6577" have entirely different histories.
b64e47fc5f
...
91b8ac78e8
@ -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 {
|
||||
@ -186,7 +186,6 @@ func ExportRegister(c *gin.Context) {
|
||||
_, err = utils.ToExcelByType(columns, data, "slice", filePath)
|
||||
if err != nil {
|
||||
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
|
||||
return
|
||||
}
|
||||
//处理图片
|
||||
// err = logic.DealExcelImg(filePath)
|
||||
|
Loading…
Reference in New Issue
Block a user