Browse Source

feat:es升级

wangchuanjin 2 years ago
parent
commit
d362f23e74
1 changed files with 6 additions and 4 deletions
  1. 6 4
      rpc/model/es/es.go

+ 6 - 4
rpc/model/es/es.go

@@ -1,17 +1,18 @@
 package model
 package model
 
 
 import (
 import (
-	"app.yhyue.com/moapp/jyInfo/rpc/model"
-	mc "app.yhyue.com/moapp/jybase/common"
-	"app.yhyue.com/moapp/jybase/redis"
 	"fmt"
 	"fmt"
 	"log"
 	"log"
 	"strconv"
 	"strconv"
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
+	"app.yhyue.com/moapp/jyInfo/rpc/model"
+	mc "app.yhyue.com/moapp/jybase/common"
+	"app.yhyue.com/moapp/jybase/redis"
+
 	"app.yhyue.com/moapp/jyInfo/rpc/consumer/consumerinfo"
 	"app.yhyue.com/moapp/jyInfo/rpc/consumer/consumerinfo"
-	"app.yhyue.com/moapp/jybase/esv1"
+	elastic "app.yhyue.com/moapp/jybase/es"
 )
 )
 
 
 const (
 const (
@@ -42,6 +43,7 @@ func GetSupplyInfoList(in *consumerinfo.SupplyInfoSearchReq, b bool) (list *[]ma
 	}
 	}
 
 
 	qstr := GetSearchQuery(in)
 	qstr := GetSearchQuery(in)
+	log.Println("=======", qstr)
 	if in.PageIndex == 1 {
 	if in.PageIndex == 1 {
 		total = elastic.Count(INDEX, TYPE, qstr)
 		total = elastic.Count(INDEX, TYPE, qstr)
 	}
 	}