Browse Source

新增区县字段

WH01243 1 year ago
parent
commit
c85f38342d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      public/dataexport.go

+ 5 - 1
public/dataexport.go

@@ -123,7 +123,7 @@ type BidSearchExport struct {
 
 
 func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{}) (returnData map[string]interface{}) {
 func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{}) (returnData map[string]interface{}) {
 	defer util.Catch()
 	defer util.Catch()
-	areaSave, industrySave, citySave := []string{}, []string{}, []string{}
+	areaSave, industrySave, citySave, districtSave := []string{}, []string{}, []string{}, []string{}
 	winnerSave, buyerclassSave := []string{}, []string{}
 	winnerSave, buyerclassSave := []string{}, []string{}
 	publishtimeSave := this.Publishtime
 	publishtimeSave := this.Publishtime
 	if len(this.Area) > 0 {
 	if len(this.Area) > 0 {
@@ -132,6 +132,9 @@ func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{
 	if this.City != "" {
 	if this.City != "" {
 		citySave = strings.Split(this.City, ",")
 		citySave = strings.Split(this.City, ",")
 	}
 	}
+	if this.District != "" {
+		districtSave = strings.Split(this.District, ",")
+	}
 	if len(this.Industry) > 0 {
 	if len(this.Industry) > 0 {
 		industrySave = strings.Split(this.Industry, ",")
 		industrySave = strings.Split(this.Industry, ",")
 	}
 	}
@@ -198,6 +201,7 @@ func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{
 		"publishtime":  publishtimeSave,
 		"publishtime":  publishtimeSave,
 		"area":         areaSave,
 		"area":         areaSave,
 		"city":         citySave,
 		"city":         citySave,
+		"district":     districtSave,
 		"subtype":      this.Subtype,
 		"subtype":      this.Subtype,
 		"minprice":     this.Minprice,
 		"minprice":     this.Minprice,
 		"maxprice":     this.Maxprice,
 		"maxprice":     this.Maxprice,