|
@@ -58,6 +58,11 @@ func GetEntDataExportCount(sim, bid mg.MongodbSim, bidMgoDBName, elasticAddress,
|
|
v["bidendtime"] = strings.Split(time.Unix(util.Int64All(v["bidendtime"]), 0).Format("2006-01-02 15:04:05"), " ")[0]
|
|
v["bidendtime"] = strings.Split(time.Unix(util.Int64All(v["bidendtime"]), 0).Format("2006-01-02 15:04:05"), " ")[0]
|
|
} else {
|
|
} else {
|
|
v["bidendtime"] = ""
|
|
v["bidendtime"] = ""
|
|
|
|
+ } //signendtime
|
|
|
|
+ if util.Int64All(v["signendtime"]) > 0 {
|
|
|
|
+ v["signendtime"] = strings.Split(time.Unix(util.Int64All(v["signendtime"]), 0).Format("2006-01-02 15:04:05"), " ")[0]
|
|
|
|
+ } else {
|
|
|
|
+ v["signendtime"] = ""
|
|
}
|
|
}
|
|
id := util.ObjToString(v["_id"])
|
|
id := util.ObjToString(v["_id"])
|
|
if m[id] {
|
|
if m[id] {
|
|
@@ -221,6 +226,10 @@ func FormatExportDatas(Mgo_Ent mongodb.MongodbSim, data *[]map[string]interface{
|
|
date := v["bidopentime"]
|
|
date := v["bidopentime"]
|
|
v["bidopentime"] = FormatDateWithObj(&date, Date_Short_Layout)
|
|
v["bidopentime"] = FormatDateWithObj(&date, Date_Short_Layout)
|
|
}
|
|
}
|
|
|
|
+ if v["signendtime"] != nil {
|
|
|
|
+ date := v["signendtime"]
|
|
|
|
+ v["signendtime"] = FormatDateWithObj(&date, Date_Short_Layout)
|
|
|
|
+ }
|
|
if v["currency"] == "" || v["currency"] == nil {
|
|
if v["currency"] == "" || v["currency"] == nil {
|
|
v["currency"] = "人民币"
|
|
v["currency"] = "人民币"
|
|
}
|
|
}
|
|
@@ -279,6 +288,7 @@ func GetXlsx(mMap []map[string]interface{}, entId, entUserId int, filePath strin
|
|
row.AddCell().SetValue(v["keyword"])
|
|
row.AddCell().SetValue(v["keyword"])
|
|
row.AddCell().SetValue(v["area"])
|
|
row.AddCell().SetValue(v["area"])
|
|
row.AddCell().SetValue(v["city"])
|
|
row.AddCell().SetValue(v["city"])
|
|
|
|
+ row.AddCell().SetValue(v["district"])
|
|
row.AddCell().SetValue(v["title"])
|
|
row.AddCell().SetValue(v["title"])
|
|
row.AddCell().SetValue(v["subtype"])
|
|
row.AddCell().SetValue(v["subtype"])
|
|
row.AddCell().SetValue(v["detail"])
|
|
row.AddCell().SetValue(v["detail"])
|
|
@@ -302,6 +312,11 @@ func GetXlsx(mMap []map[string]interface{}, entId, entUserId int, filePath strin
|
|
} else {
|
|
} else {
|
|
row.AddCell()
|
|
row.AddCell()
|
|
}
|
|
}
|
|
|
|
+ if v["signendtime"] != nil {
|
|
|
|
+ row.AddCell().SetValue(v["signendtime"])
|
|
|
|
+ } else {
|
|
|
|
+ row.AddCell()
|
|
|
|
+ }
|
|
if v["bidopentime"] != nil {
|
|
if v["bidopentime"] != nil {
|
|
row.AddCell().SetValue(v["bidopentime"])
|
|
row.AddCell().SetValue(v["bidopentime"])
|
|
} else {
|
|
} else {
|
|
@@ -315,6 +330,7 @@ func GetXlsx(mMap []map[string]interface{}, entId, entUserId int, filePath strin
|
|
row.AddCell().SetValue(v["buyer"])
|
|
row.AddCell().SetValue(v["buyer"])
|
|
row.AddCell().SetValue(v["buyerperson"])
|
|
row.AddCell().SetValue(v["buyerperson"])
|
|
row.AddCell().SetValue(v["buyertel"])
|
|
row.AddCell().SetValue(v["buyertel"])
|
|
|
|
+ row.AddCell().SetValue(v["buyeraddr"])
|
|
row.AddCell().SetValue(v["agency"])
|
|
row.AddCell().SetValue(v["agency"])
|
|
row.AddCell().SetValue(v["s_winner"])
|
|
row.AddCell().SetValue(v["s_winner"])
|
|
row.AddCell().SetValue(v["winnerperson"])
|
|
row.AddCell().SetValue(v["winnerperson"])
|