|
@@ -419,7 +419,7 @@ func bigCustomer() {
|
|
|
}
|
|
|
}
|
|
|
cfg.BigSaleTime = bigSaleTime
|
|
|
- orderData := Mysql.SelectBySql(`SELECT * FROM dataexport_order WHERE create_time >= "` + bigOrderTime + `" AND (product_type = '历史数据' or product_type = '数据流量包') AND order_status IN (0,1) AND salesperson IS NULL AND is_backstage_order = 0`)
|
|
|
+ orderData := Mysql.SelectBySql(`SELECT * FROM dataexport_order WHERE create_time > "` + bigOrderTime + `" AND (product_type = '历史数据' or product_type = '数据流量包') AND order_status IN (0,1) AND salesperson IS NULL AND is_backstage_order = 0`)
|
|
|
if orderData != nil && len(*orderData) > 0 {
|
|
|
for _, v := range *orderData {
|
|
|
phone := common.ObjToString(v["user_phone"])
|
|
@@ -650,6 +650,14 @@ func marketCustomer() {
|
|
|
cfg.MarketSaleTime = marketSaleTime
|
|
|
xlsxArr := []string{"姓名", "联系人电话", "公司名称", "职位", "部门", "销售线索来源", "留资时间"}
|
|
|
if len(dataArr) > 0 {
|
|
|
+ //排序:首先按照“联系方式”排序,即同1个用户的留资放在一起,其次按照留资时间正序排序。
|
|
|
+ /*sort.Slice(dataArr, func(i, j int) bool {
|
|
|
+ aa := fmt.Sprintf("%s%s", gconv.String(returnData[i]["zbtime"]),
|
|
|
+ gconv.String(returnData[i]["b_id"]))
|
|
|
+ bb := fmt.Sprintf("%s%s", gconv.String(returnData[j]["zbtime"]),
|
|
|
+ gconv.String(returnData[j]["b_id"]))
|
|
|
+ return aa > bb
|
|
|
+ })*/
|
|
|
batch := FindBatch("sc")
|
|
|
fileName, detailName := "商务合作销售线索 "+time.Now().Format(date.Date_Short_Layout)+"-"+batch, ""
|
|
|
xf := xlsx.NewFile()
|