|
@@ -411,7 +411,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell()
|
|
|
}
|
|
|
row.AddCell().SetValue(v["buyer"])
|
|
|
- row.AddCell().SetValue(v["winner"])
|
|
|
+ row.AddCell().SetValue(v["s_winner"])
|
|
|
if v["bidamount"] != nil {
|
|
|
row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
|
|
|
} else {
|
|
@@ -420,6 +420,8 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell().SetValue(v["projectname"])
|
|
|
row.AddCell().SetValue(v["detail"])
|
|
|
row.AddCell().SetValue(v["jybxhref"])
|
|
|
+ ids := SE.EncodeString(qu.ObjToString(v["id"]))
|
|
|
+ row.AddCell().SetValue(ids)
|
|
|
}
|
|
|
xf.Sheets = xf.Sheets[0:1]
|
|
|
} else if dataType == 2 {
|
|
@@ -468,6 +470,9 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell().SetValue(v["legal_person"])
|
|
|
row.AddCell().SetValue(v["company_phone"])
|
|
|
row.AddCell().SetValue(v["company_email"])
|
|
|
+ ids := SE.EncodeString(qu.ObjToString(v["id"]))
|
|
|
+ row.AddCell().SetValue(ids)
|
|
|
+
|
|
|
}
|
|
|
xf.Sheets = xf.Sheets[1:2]
|
|
|
} else if dataType == 3 {
|
|
@@ -553,7 +558,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
|
|
|
row.AddCell().SetValue(v["buyerperson"])
|
|
|
row.AddCell().SetValue(v["buyertel"])
|
|
|
row.AddCell().SetValue(v["agency"])
|
|
|
- row.AddCell().SetValue(v["winner"])
|
|
|
+ row.AddCell().SetValue(v["s_winner"])
|
|
|
row.AddCell().SetValue(v["winnerperson"])
|
|
|
row.AddCell().SetValue(v["winnertel"])
|
|
|
row.AddCell().SetValue(v["legal_person"])
|
|
@@ -637,11 +642,13 @@ func (s *SecondPush) SecondPushList() {
|
|
|
|
|
|
func (s *SecondPush) SecondPushClone(hid string) {
|
|
|
data, ok := Mgo.FindOne("second_push", map[string]interface{}{"_id": mongoutil.StringTOBsonId(hid)})
|
|
|
+ user := s.GetSession("user").(map[string]interface{})
|
|
|
if ok && data != nil && *data != nil {
|
|
|
(*data)["state"] = 0
|
|
|
(*data)["result_count"] = nil
|
|
|
(*data)["createtime"] = time.Now().Unix()
|
|
|
(*data)["updatetime"] = time.Now().Unix()
|
|
|
+ (*data)["create_user"] = user["name"]
|
|
|
delete((*data), "finishtime")
|
|
|
Mgo.Save("second_push", *data)
|
|
|
}
|