|
@@ -34,6 +34,8 @@ var MatchType = map[string]interface{}{
|
|
|
"5": "projectname",
|
|
|
"6": "buyer",
|
|
|
"7": "s_winner",
|
|
|
+ "8": "buyer",
|
|
|
+ "9": "s_winner",
|
|
|
}
|
|
|
|
|
|
//加载排除词、附加词、关键词
|
|
@@ -487,7 +489,7 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
}
|
|
|
}
|
|
|
//河南移动
|
|
|
- if CheckBidHrefAppidMap[appid] {
|
|
|
+ if DisPackageAppidMap[appid] {
|
|
|
projectId := GetProjectId(id)
|
|
|
if projectId != "" {
|
|
|
//projectIds := strings.Split(projectId, ",")
|
|
@@ -555,6 +557,9 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if index == 1 {
|
|
|
+ GetWinnerType(qu.ObjToString(tmp["s_winner"]), tmp)
|
|
|
+ }
|
|
|
if len(indexdata) > 0 {
|
|
|
for _, v := range indexdata {
|
|
|
MgoSaveCache <- v
|
|
@@ -562,6 +567,8 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
xlsxCount++
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ log.Println("查result为空id:", id)
|
|
|
}
|
|
|
}
|
|
|
if isDup == 1 {
|
|
@@ -1169,8 +1176,8 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHen
|
|
|
ids := SE.EncodeString(qu.ObjToString(v["id"])) //唯一标识
|
|
|
row.AddCell().SetValue(ids)
|
|
|
row.AddCell().SetValue(SE.EncodeString(qu.ObjToString(v["projectId"]))) //项目标识
|
|
|
+ row.AddCell().SetValue(v["jybxhref"]) //剑鱼标讯地址
|
|
|
|
|
|
- //row.AddCell().SetValue(v["jybxhref"])
|
|
|
//row.AddCell().SetValue(v["projectcode"])
|
|
|
}
|
|
|
xf.Sheets = xf.Sheets[4:5]
|
|
@@ -1272,29 +1279,33 @@ func checkBidId(appid, id string) bool {
|
|
|
|
|
|
func GetWinnerType(s_winner string, v map[string]interface{}) {
|
|
|
isMatch := false
|
|
|
- for _, vs := range Sysconfig["dis_package_config"].(map[string]interface{}) {
|
|
|
- vvs := vs.(map[string]interface{})
|
|
|
- keyWord := qu.ObjToString(vvs["keyWord"])
|
|
|
- exclued := qu.ObjToString(vvs["exclued"])
|
|
|
- name := qu.ObjToString(vvs["name"])
|
|
|
- for _, key := range strings.Split(keyWord, ",") {
|
|
|
- if strings.Contains(s_winner, key) {
|
|
|
- isMatch = true
|
|
|
- if exclued != "" {
|
|
|
- for _, keys := range strings.Split(exclued, ",") {
|
|
|
- if strings.Contains(s_winner, keys) {
|
|
|
- isMatch = false
|
|
|
+ if s_winner != "" {
|
|
|
+ for _, vs := range Sysconfig["dis_package_config"].(map[string]interface{}) {
|
|
|
+ vvs := vs.(map[string]interface{})
|
|
|
+ keyWord := qu.ObjToString(vvs["keyWord"])
|
|
|
+ exclued := qu.ObjToString(vvs["exclued"])
|
|
|
+ name := qu.ObjToString(vvs["name"])
|
|
|
+ for _, key := range strings.Split(keyWord, ",") {
|
|
|
+ if strings.Contains(s_winner, key) {
|
|
|
+ isMatch = true
|
|
|
+ if exclued != "" {
|
|
|
+ for _, keys := range strings.Split(exclued, ",") {
|
|
|
+ if strings.Contains(s_winner, keys) {
|
|
|
+ isMatch = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if isMatch {
|
|
|
+ v["winner_type"] = name
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
- if isMatch {
|
|
|
- v["winner_type"] = name
|
|
|
- break
|
|
|
+ if !isMatch {
|
|
|
+ v["winner_type"] = "集成商"
|
|
|
}
|
|
|
- }
|
|
|
- if !isMatch {
|
|
|
- v["winner_type"] = "集成商"
|
|
|
+ } else {
|
|
|
+ v["winner_type"] = ""
|
|
|
}
|
|
|
}
|