|
@@ -25,7 +25,7 @@ func kcSync() {
|
|
|
return
|
|
|
}
|
|
|
sql := `SELECT
|
|
|
- a.*,b.product_type,b.service_starttime,b.service_endtime,b.filter as productFilter,TIMESTAMPDIFF(DAY, b.service_starttime, b.service_endtime) as difference
|
|
|
+ a.*,b.product_type,b.service_starttime,b.service_endtime,b.filter as productFilter,TIMESTAMPDIFF(DAY, b.service_starttime, b.service_endtime) as difference,b.update_time
|
|
|
FROM
|
|
|
dataexport_order a
|
|
|
INNER JOIN jy_order_detail b ON a.order_code = b.order_code
|
|
@@ -541,7 +541,7 @@ func ordersClue() {
|
|
|
lastOrderClueId := cfg.LastOrderClueId
|
|
|
nowTime := time.Now().Format(date.Date_Full_Layout)
|
|
|
product_type_str2 := `"大会员","企业商机管理","VIP订阅"`
|
|
|
- sql := fmt.Sprintf(`select a.*,b.product_type as productType ,b.service_starttime,b.service_endtime,b.filter AS productFilter from dataexport_order a
|
|
|
+ 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
|
|
|
and b.update_time>="%s" AND a.user_phone NOT LIKE "%s" and a.user_id !=""
|
|
|
and b.product_type in (%s) and a.order_status = 1 and a.is_backstage_order = 1 order by b.update_time asc`, lastOrderClueId, "9%", product_type_str2)
|