|
@@ -2,9 +2,11 @@ package front
|
|
|
|
|
|
import (
|
|
import (
|
|
"fmt"
|
|
"fmt"
|
|
|
|
+ "jfw/config"
|
|
"jfw/jylabutil"
|
|
"jfw/jylabutil"
|
|
_ "jfw/jyutil"
|
|
_ "jfw/jyutil"
|
|
"log"
|
|
"log"
|
|
|
|
+ "math/rand"
|
|
"qfw/util"
|
|
"qfw/util"
|
|
"time"
|
|
"time"
|
|
|
|
|
|
@@ -25,6 +27,12 @@ func init() {
|
|
|
|
|
|
func (e *Entsearch) Bidsearchforent() error {
|
|
func (e *Entsearch) Bidsearchforent() error {
|
|
defer util.Catch()
|
|
defer util.Catch()
|
|
|
|
+ var shareid = e.GetString("id")
|
|
|
|
+ e.T["logid"] = config.Seoconfig["jyzbqyss"].(string)
|
|
|
|
+ if len(shareid) == 0 {
|
|
|
|
+ shareid = fmt.Sprintf("%s%d", config.Seoconfig["jysslby"].(string)+fmt.Sprintf("%d", time.Now().UnixNano())[8:14], rand.Intn(9))
|
|
|
|
+ }
|
|
|
|
+
|
|
searchvalue := e.GetString("searchvalue")
|
|
searchvalue := e.GetString("searchvalue")
|
|
area := e.GetString("area")
|
|
area := e.GetString("area")
|
|
pricetype := e.GetString("pricetype")
|
|
pricetype := e.GetString("pricetype")
|
|
@@ -34,14 +42,14 @@ func (e *Entsearch) Bidsearchforent() error {
|
|
//搜索minprice和maxprice价格区间的数据
|
|
//搜索minprice和maxprice价格区间的数据
|
|
}
|
|
}
|
|
if pricetype == "n" || pricetype == "" {
|
|
if pricetype == "n" || pricetype == "" {
|
|
- //搜索所有价格
|
|
|
|
|
|
+ //搜索所有的价格
|
|
}
|
|
}
|
|
|
|
|
|
- fmt.Println("searchvalue1==", searchvalue)
|
|
|
|
- fmt.Println("area1==", area)
|
|
|
|
- fmt.Println("lower1==", minprice)
|
|
|
|
- fmt.Println("upper1==", maxprice)
|
|
|
|
- fmt.Println("pricetype1==", pricetype)
|
|
|
|
|
|
+ //fmt.Println("searchvalue1==", searchvalue)
|
|
|
|
+ //fmt.Println("area1==", area)
|
|
|
|
+ //fmt.Println("lower1==", minprice)
|
|
|
|
+ //fmt.Println("upper1==", maxprice)
|
|
|
|
+ //fmt.Println("pricetype1==", pricetype)
|
|
|
|
|
|
if minprice == 0 {
|
|
if minprice == 0 {
|
|
e.T["minprice"] = ""
|
|
e.T["minprice"] = ""
|
|
@@ -57,6 +65,7 @@ func (e *Entsearch) Bidsearchforent() error {
|
|
e.T["searchvalue"] = searchvalue
|
|
e.T["searchvalue"] = searchvalue
|
|
e.T["area"] = area
|
|
e.T["area"] = area
|
|
e.T["pricetype"] = pricetype
|
|
e.T["pricetype"] = pricetype
|
|
|
|
+ e.T["shareid"] = se.EncodeString(shareid)
|
|
log.Println("-------中标企业搜索:")
|
|
log.Println("-------中标企业搜索:")
|
|
|
|
|
|
list := []map[string]interface{}{}
|
|
list := []map[string]interface{}{}
|
|
@@ -93,11 +102,11 @@ func (e *Entsearch) PcSearchZbqyAjax() error {
|
|
if pricetype == "n" {
|
|
if pricetype == "n" {
|
|
//搜索所有价格
|
|
//搜索所有价格
|
|
}
|
|
}
|
|
- fmt.Println("searchvalue==", searchvalue)
|
|
|
|
- fmt.Println("area==", area)
|
|
|
|
- fmt.Println("lower==", minprice)
|
|
|
|
- fmt.Println("upper==", maxprice)
|
|
|
|
- fmt.Println("pricetype==", pricetype)
|
|
|
|
|
|
+ //fmt.Println("searchvalue==", searchvalue)
|
|
|
|
+ //fmt.Println("area==", area)
|
|
|
|
+ //fmt.Println("lower==", minprice)
|
|
|
|
+ //fmt.Println("upper==", maxprice)
|
|
|
|
+ //fmt.Println("pricetype==", pricetype)
|
|
|
|
|
|
list := []map[string]interface{}{}
|
|
list := []map[string]interface{}{}
|
|
list = jylabutil.GetProjectByEntName(searchvalue, area, minprice, maxprice, 1, 10)
|
|
list = jylabutil.GetProjectByEntName(searchvalue, area, minprice, maxprice, 1, 10)
|