|
@@ -539,12 +539,6 @@ func kcAuto() {
|
|
|
func ordersClue() {
|
|
|
lastOrderClueId := cfg.LastOrderClueId
|
|
|
nowTime := time.Now().Format(date.Date_Full_Layout)
|
|
|
-<<<<<<< HEAD
|
|
|
- sql := fmt.Sprintf(`select order_code,order_status,is_backstage_order,pay_money,saleDep,salesperson,user_phone,create_person,saleMoney,user_id,product_type,company_name,autoUpdate from dataexport_order where autoUpdate >= "%s" order by autoUpdate asc`, lastOrderClueId)
|
|
|
- log.Println("后台订单线索定时任务开始:", sql)
|
|
|
- data := Mysql.SelectBySql(sql)
|
|
|
- log.Println("后台订单线索定时任务开始:", len(*data))
|
|
|
-=======
|
|
|
product_type_str2 := `"大会员","企业商机管理","VIP订阅"`
|
|
|
sql := fmt.Sprintf(`select a.*,b.product_type as productType ,b.service_starttime,b.service_endtime,b.filter AS productFilter,b.update_time from dataexport_order a
|
|
|
INNER JOIN jy_order_detail b on a.order_code=b.order_code
|
|
@@ -553,7 +547,6 @@ func ordersClue() {
|
|
|
log.Println("后台订单线索定时任务", sql)
|
|
|
data := Mysql.SelectBySql(sql)
|
|
|
log.Println("后台订单线索定时任务", len(*data))
|
|
|
->>>>>>> master
|
|
|
if data != nil && *data != nil && len(*data) > 0 {
|
|
|
for _, v := range *data {
|
|
|
payMoney := common.IntAll(v["pay_money"])
|