|
@@ -40,7 +40,7 @@ var (
|
|
|
MatchTypeMap *[]map[string]interface{} //匹配方式
|
|
|
MatchTypeMap2 map[string]interface{} //匹配方式
|
|
|
MatchTypeMap3 *[]map[string]interface{} //匹配方式
|
|
|
- ExistFiled []string //存在的字段
|
|
|
+ ExistFiled *[]map[string]interface{} //存在的字段
|
|
|
ScopeClassMap *[]map[string]interface{} //公告行业
|
|
|
TagFieldMap *[]map[string]interface{} //标签属性值
|
|
|
TaskTypeMap *[]map[string]interface{} //任务类型
|
|
@@ -185,11 +185,11 @@ func initMatchType() {
|
|
|
}
|
|
|
|
|
|
func initExitField() {
|
|
|
- datas, _ := Mgo.Find("code_field", `{}`, `{"_id":1}`, `{}`, false, -1, -1)
|
|
|
- for _, data := range *datas {
|
|
|
- name := data["name"].(string)
|
|
|
- ExistFiled = append(ExistFiled, name)
|
|
|
- }
|
|
|
+ ExistFiled, _ = Mgo.Find("code_field", `{}`, `{"_id":1}`, `{}`, false, -1, -1)
|
|
|
+ //for _, data := range *datas {
|
|
|
+ // name := data["name"].(string)
|
|
|
+ // ExistFiled = append(ExistFiled, name)
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
func initScopeClass() {
|