|
@@ -217,7 +217,6 @@ func (this *ProjectFollow) GetDetailByFid(fid string) (returnData map[string]int
|
|
|
returnData["visit"] = strings.Split(visit, ",") //是否开启提醒
|
|
|
returnData["bidopentime"] = (*data)["l_bidopentime"] //开标时间
|
|
|
returnData["remindtime"] = (*data)["l_remindtime"] //提醒时间
|
|
|
- returnData["s_winner"] = (*data)["s_winner"] //中标企业
|
|
|
if qutil.ObjToString((*data)["s_id"]) == "" { //兼容旧版本手动添加的关注
|
|
|
projectInfo = map[string]interface{}{
|
|
|
"projectname": (*data)["s_projectname"],
|
|
@@ -251,7 +250,7 @@ func (this *ProjectFollow) GetProjectDetailBySid(sid string) (res map[string]int
|
|
|
}
|
|
|
log.Printf("ProjectFollow GetProjectDetailBySid Unmarshal err %v\n", err)
|
|
|
}
|
|
|
- list := elastic.Get("projectset", "projectset", `{"query": {"bool": {"must": [{"match": {"list.infoid": "`+sid+`"}}]}},"_source":["list","projectcode","projectname","bidopentime","area","city","agency","buyer","buyerperson","buyertel","bidstatus","s_winner"],"from": 0,"size": 1}`)
|
|
|
+ list := elastic.Get("projectset", "projectset", `{"query": {"bool": {"must": [{"match": {"list.infoid": "`+sid+`"}}]}},"_source":["list","projectcode","projectname","bidopentime","area","city","agency","buyer","buyerperson","buyertel","bidstatus","winner"],"from": 0,"size": 1}`)
|
|
|
if len(*list) == 0 {
|
|
|
return nil, errors.New("没有找到项目信息")
|
|
|
}
|
|
@@ -280,6 +279,10 @@ func (this *ProjectFollow) GetProjectDetailBySid(sid string) (res map[string]int
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+ if finalDate["winner"] != nil {
|
|
|
+ finalDate["s_winner"] = finalDate["winner"]
|
|
|
+ delete(finalDate, "winner")
|
|
|
+ }
|
|
|
finalDate["list"] = thisList
|
|
|
//redis缓存一星期
|
|
|
redis.Put("other", redisKey, &finalDate, 60*60*5)
|