|
@@ -484,7 +484,6 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- xlsxArr = append(xlsxArr, tmp)
|
|
|
MgoSaveCache <- tmp
|
|
|
return true
|
|
|
}
|
|
@@ -882,7 +881,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
for i, v := range mMap {
|
|
|
row := sh.AddRow()
|
|
|
row.AddCell().SetInt(i + 1)
|
|
|
- row.AddCell().SetValue(v["s_matchkey"])
|
|
|
+ row.AddCell().SetValue(v["matchkey"])
|
|
|
row.AddCell().SetValue(v["area"])
|
|
|
row.AddCell().SetValue(v["city"])
|
|
|
row.AddCell().SetValue(v["title"])
|
|
@@ -903,13 +902,13 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell().SetValue(v["detail"])
|
|
|
row.AddCell().SetValue(v["s_jyhref"])
|
|
|
}
|
|
|
- xf.Sheets = xf.Sheets[:1]
|
|
|
+ xf.Sheets = xf.Sheets[0:1]
|
|
|
} else if dataType == 2 {
|
|
|
sh := xf.Sheets[1]
|
|
|
for i, v := range mMap {
|
|
|
row := sh.AddRow()
|
|
|
row.AddCell().SetInt(i + 1)
|
|
|
- row.AddCell().SetValue(v["s_matchkey"])
|
|
|
+ row.AddCell().SetValue(v["matchkey"])
|
|
|
row.AddCell().SetValue(v["area"])
|
|
|
row.AddCell().SetValue(v["city"])
|
|
|
row.AddCell().SetValue(v["title"])
|
|
@@ -951,9 +950,47 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell().SetValue(v["company_phone"])
|
|
|
row.AddCell().SetValue(v["company_email"])
|
|
|
}
|
|
|
- xf.Sheets = xf.Sheets[1:]
|
|
|
+ xf.Sheets = xf.Sheets[1:2]
|
|
|
} else {
|
|
|
-
|
|
|
+ sh := xf.Sheets[2]
|
|
|
+ for i, v := range mMap {
|
|
|
+ row := sh.AddRow()
|
|
|
+ row.AddCell().SetInt(i + 1)
|
|
|
+ row.AddCell().SetValue(v["matchkey"])
|
|
|
+ row.AddCell().SetValue(v["area"])
|
|
|
+ row.AddCell().SetValue(v["city"])
|
|
|
+ row.AddCell().SetValue(v["district"])
|
|
|
+ row.AddCell().SetValue(v["title"])
|
|
|
+ row.AddCell().SetValue(v["detail"])
|
|
|
+ if v["publishtime"] != nil {
|
|
|
+ row.AddCell().SetValue(time.Unix(qu.Int64All(v["publishtime"]), 0).Format("2006-01-02"))
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ row.AddCell().SetValue(v["href"])
|
|
|
+ if v["bidamount"] != nil {
|
|
|
+ row.AddCell().SetFloat(qu.Float64All(v["bidamount"]) / 10000)
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ row.AddCell().SetValue(v["buyer"])
|
|
|
+ row.AddCell().SetValue(v["buyerperson"])
|
|
|
+ row.AddCell().SetValue(v["buyertel"])
|
|
|
+ row.AddCell().SetValue(v["s_winner"])
|
|
|
+ row.AddCell().SetValue(v["legal_person"])
|
|
|
+ row.AddCell().SetValue(v["company_phone"])
|
|
|
+ row.AddCell().SetValue(v["company_address"])
|
|
|
+ row.AddCell().SetValue(v["rank"])
|
|
|
+ row.AddCell().SetValue(v["purchasing"])
|
|
|
+ row.AddCell().SetValue(v["capital"])
|
|
|
+ row.AddCell().SetValue(v["establish_date"])
|
|
|
+ row.AddCell().SetValue(v["business_scope"])
|
|
|
+ row.AddCell().SetValue(v["stock_name"])
|
|
|
+ row.AddCell().SetValue(v["buyer_credit_no"])
|
|
|
+ row.AddCell().SetValue(v["winner_credit_no"])
|
|
|
+ row.AddCell().SetValue(v["id"])
|
|
|
+ }
|
|
|
+ xf.Sheets = xf.Sheets[2:3]
|
|
|
}
|
|
|
//生文件
|
|
|
t := strconv.FormatInt(time.Now().Unix(), 10)
|