فهرست منبع

feat:增加区县

wangchuanjin 1 سال پیش
والد
کامیت
6b8eeed5af
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      p/constant.go
  2. 1 0
      p/public.go

+ 1 - 1
p/constant.go

@@ -51,7 +51,7 @@ var (
 	}
 	KeyFilterReg     = regexp.MustCompile("^(项目|中标|公告)$")
 	KeyRetainReg     = regexp.MustCompile("[\\p{Han}a-zA-Z0-9]")
-	SaveBiddingField = []string{"_id", "area", "city", "buyerclass", "publishtime", "s_subscopeclass", "subtype", "title", "toptype", "buyer", "bidamount", "budget", "projectname", "projectcode", "s_winner", "agency", "bidopentime", "attachment_count", "site", "buyertel", "buyerperson", "agencyperson", "agencytel", "winnerperson", "winnertel", "signendtime", "bidendtime", "entidlist"}
+	SaveBiddingField = []string{"_id", "area", "city", "district", "buyerclass", "publishtime", "s_subscopeclass", "subtype", "title", "toptype", "buyer", "bidamount", "budget", "projectname", "projectcode", "s_winner", "agency", "bidopentime", "attachment_count", "site", "buyertel", "buyerperson", "agencyperson", "agencytel", "winnerperson", "winnertel", "signendtime", "bidendtime", "entidlist"}
 	SpaceReg         = regexp.MustCompile("\\s+")
 	UserCollFields   = map[string]interface{}{
 		"_id":                 1,

+ 1 - 0
p/public.go

@@ -245,6 +245,7 @@ func LoadBidding(mgo *MongodbSim, dbName, coll string, startTime int64, redisCac
 		"area":            1,
 		"s_subscopeclass": 1,
 		"city":            1,
+		"district":        1,
 		"buyerclass":      1,
 		"jsondata":        1,
 		"budget":          1,