|
@@ -26,7 +26,7 @@ var (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- PSearch_DecField = `"projectname","_id","buyer","firsttime","area","city","s_winner","review_experts","budget","bidamount","project_rate","bidtype","ids","winnerorder","entidlist","bidtype","bidcycle","buyerclass","jgtime"`
|
|
|
+ PSearch_DecField = `"projectname","_id","buyer","firsttime","area","city","s_winner","review_experts","budget","bidamount","project_rate","bidtype","ids","winnerorder","entidlist","bidtype","bidcycle","buyerclass","jgtime","list"`
|
|
|
PSearch_DecMust = `"bidstatus": ["中标","成交","合同"]`
|
|
|
PSearch_DecSimCount = 100 //决策分析类似项目明细数据量
|
|
|
PSearch_DecSort = `{"jgtime":"desc"}` //决策分析类似项目明细排序
|
|
@@ -320,6 +320,12 @@ func Sequence(seqData []map[string]interface{}) []map[string]interface{} {
|
|
|
if len(review_experts) > 0 {
|
|
|
score += review_experts_score
|
|
|
}
|
|
|
+ list, _ := v["list"].([]interface{})
|
|
|
+ if len(list) > 0 {
|
|
|
+ listMap, _ := list[0].(map[string]interface{})
|
|
|
+ v["subtype"] = listMap["subtype"]
|
|
|
+ delete(v, "list")
|
|
|
+ }
|
|
|
//采购方式
|
|
|
if v["bidtype"] != nil && qutil.ObjToString(v["bidtype"].(string)) != "" {
|
|
|
score += bidtype_score
|