|
@@ -17,7 +17,7 @@ import (
|
|
|
|
|
|
var ExConf *DataexportConfig
|
|
|
|
|
|
-//价格配置文件
|
|
|
+// 价格配置文件
|
|
|
type DataexportConfig struct {
|
|
|
MsgMaxCount int `json:"msgMaxCount"`
|
|
|
Font Font `json:"font"`
|
|
@@ -37,7 +37,7 @@ func init() {
|
|
|
util.ReadConfig("./dataexport.json", &ExConf)
|
|
|
}
|
|
|
|
|
|
-//发送邮箱验证码
|
|
|
+// 发送邮箱验证码
|
|
|
func SendMailIdentCode(to, code string, auth []*mail.GmailAuth) bool {
|
|
|
html := fmt.Sprintf(`<div>
|
|
|
<div>
|
|
@@ -80,7 +80,7 @@ func GetWaitPayToken(orderid int64, order_money int, ordercode, payway, userid s
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- 获取-筛选条件-金额
|
|
|
+获取-筛选条件-金额
|
|
|
*/
|
|
|
func GetPriceDes_SieveCondition(minPrice, maxPrice string) string {
|
|
|
des := ""
|
|
@@ -95,7 +95,7 @@ func GetPriceDes_SieveCondition(minPrice, maxPrice string) string {
|
|
|
return des
|
|
|
}
|
|
|
|
|
|
-//招标数据导出筛选
|
|
|
+// 招标数据导出筛选
|
|
|
type BidSearchExport struct {
|
|
|
Keywords string //搜索词
|
|
|
Publishtime string //发布时间
|
|
@@ -118,11 +118,13 @@ type BidSearchExport struct {
|
|
|
SearchMode int // 搜索模式:0:精准搜索;1:模糊搜索
|
|
|
WordsMode int // 搜索关键词模式;默认0:包含所有,1:包含任意
|
|
|
AdditionalWords string // 关键词:附加关键词(副:五组,每组最多15个字符)
|
|
|
+ District string //地区
|
|
|
+ RegionMap string
|
|
|
}
|
|
|
|
|
|
func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{}) (returnData map[string]interface{}) {
|
|
|
defer util.Catch()
|
|
|
- areaSave, industrySave, citySave := []string{}, []string{}, []string{}
|
|
|
+ areaSave, industrySave, citySave, districtSave := []string{}, []string{}, []string{}, []string{}
|
|
|
winnerSave, buyerclassSave := []string{}, []string{}
|
|
|
publishtimeSave := this.Publishtime
|
|
|
if len(this.Area) > 0 {
|
|
@@ -131,6 +133,9 @@ func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{
|
|
|
if this.City != "" {
|
|
|
citySave = strings.Split(this.City, ",")
|
|
|
}
|
|
|
+ if this.District != "" {
|
|
|
+ districtSave = strings.Split(this.District, ",")
|
|
|
+ }
|
|
|
if len(this.Industry) > 0 {
|
|
|
industrySave = strings.Split(this.Industry, ",")
|
|
|
}
|
|
@@ -197,6 +202,7 @@ func (this *BidSearchExport) PassBidSearchExport(Sysconfig map[string]interface{
|
|
|
"publishtime": publishtimeSave,
|
|
|
"area": areaSave,
|
|
|
"city": citySave,
|
|
|
+ "district": districtSave,
|
|
|
"subtype": this.Subtype,
|
|
|
"minprice": this.Minprice,
|
|
|
"maxprice": this.Maxprice,
|