浏览代码

转日期

xuzhiheng 2 年之前
父节点
当前提交
61dfe27b5a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/service/private_service.go

+ 4 - 0
src/service/private_service.go

@@ -318,6 +318,8 @@ func GetXlsxfile(mMap []map[string]interface{}, dataType int, fn string, fields
 									}
 									row.AddCell().SetValue(urlArr)
 								}
+							} else if kk == "bidopentime" || kk == "bidendtime" {
+								row.AddCell().SetValue(time.Unix(qu.Int64All(v[kk]), 0).Format("2006-01-02"))
 							} else {
 								row.AddCell().SetValue(v[kk])
 							}
@@ -400,6 +402,8 @@ func GetXlsxfile(mMap []map[string]interface{}, dataType int, fn string, fields
 									}
 									row.AddCell().SetValue(urlArr)
 								}
+							} else if kk == "bidopentime" || kk == "bidendtime" {
+								row.AddCell().SetValue(time.Unix(qu.Int64All(v[kk]), 0).Format("2006-01-02"))
 							} else {
 								row.AddCell().SetValue(v[kk])
 							}