|
@@ -40,9 +40,9 @@ FROM
|
|
|
AND a.order_status = 1
|
|
|
AND ( a.refund_status != 1 OR a.refund_status IS NULL )
|
|
|
AND b.service_starttime < "2099-01-01" AND b.service_endtime > now()
|
|
|
- AND b.autoUpdate > "%s"
|
|
|
+ AND b.update_time > "%s"
|
|
|
ORDER BY
|
|
|
- b.autoUpdate ASC,
|
|
|
+ b.update_time ASC,
|
|
|
a.order_code ASC,
|
|
|
b.final_price DESC `
|
|
|
sql = fmt.Sprintf(sql, strings.Join(productArr, ","), "9%", cfg.LastkcTime)
|
|
@@ -538,8 +538,8 @@ func ordersClue() {
|
|
|
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
|
|
|
INNER JOIN jy_order_detail b on a.order_code=b.order_code
|
|
|
- and b.autoUpdate>="%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.autoUpdate asc`, lastOrderClueId, "9%", product_type_str2)
|
|
|
+ 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)
|
|
|
|
|
|
data := Mysql.SelectBySql(sql)
|
|
|
if data != nil && *data != nil && len(*data) > 0 {
|
|
@@ -1836,7 +1836,7 @@ func KcOrderFormat(orderCode string) *OrderInfo {
|
|
|
GROUP BY
|
|
|
a.id
|
|
|
ORDER BY
|
|
|
- b.autoUpdate desc ,difference desc
|
|
|
+ b.update_time desc ,difference desc
|
|
|
`, orderCode, strings.Join(productArr, ",")))
|
|
|
data := &OrderInfo{}
|
|
|
if orderData != nil && len(*orderData) > 0 {
|