wangkaiyue 4 年之前
父節點
當前提交
1d2dece827
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      src/jfw/modules/publicapply/src/enterpriseSearch/entity/entQuery.go

+ 8 - 8
src/jfw/modules/publicapply/src/enterpriseSearch/entity/entQuery.go

@@ -10,7 +10,7 @@ import (
 
 type EnterpriseSearch struct {
 	Match       string //搜索内容
-	MatchType   string //搜索范围[A:企业名称,B:法定代表人,C:股东,D:高管,E:标的物]
+	MatchType   string //搜索范围[A:企业名称,B:法定代表人,C:股东,D:高管,E:项目or标的物]
 	EntArea     string //注册地省份[多个用逗号分割]
 	EntCity     string //注册地城市[多个用逗号分割]
 	EntCapital  string //注册资本[min-max,必有-]
@@ -35,11 +35,11 @@ const (
 var (
 	//检索匹配
 	AllMatchType = map[string]string{
-		"A": `{"match_phrase":{"ent_ikname":"%s"}}`, //企业名称
-		"B": `{"term":{"legal_person":"%s"}}`,       //法定代表人
-		"C": `{"term":{"stock_name":"%s"}}`,         //股东
-		"D": `{"term":{"employee_name":"%s"}}`,      //高管
-		"E": `{"term":{"bid_purchasing":"%s"}}`,     //标的物
+		"A": `{"match_phrase":{"ent_ikname":"%s"}}`,                                                          //企业名称
+		"B": `{"term":{"legal_person":"%s"}}`,                                                                //法定代表人
+		"C": `{"term":{"stock_name":"%s"}}`,                                                                  //股东
+		"D": `{"term":{"employee_name":"%s"}}`,                                                               //高管
+		"E": `{"multi_match":{"query":"%s","type": "phrase","fields":["bid_purchasing","bid_projectname"]}}`, //中标项目、标的物
 	}
 	//EntType 企业类型
 	AllEntType = map[string]string{
@@ -53,8 +53,8 @@ var (
 		"A": "存续",
 		"B": "吊销",
 		"C": "注销",
-		"D": "", //(停业??)
-		"E": "撤销",
+		"D": "撤销",
+		//"E": "", //(停业??)
 	}
 )