Browse Source

fix:订单监控sql调整

fuwencai 2 years ago
parent
commit
7088677fd5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      task/ordermonitor.go

+ 1 - 1
task/ordermonitor.go

@@ -308,7 +308,7 @@ func selectOrder2(num int, productType []string, priceLimit bool, priceStart, pr
         pay_time
 FROM
         dataexport_order
-WHERE order_status = 1 and create_time >=? and create_time<?` + productTypeStr +
+WHERE order_status = 1 and pay_time >=? and pay_time<?` + productTypeStr +
 		priceLimitStr + ` AND is_backstage_order = 0 and pay_time is not null
  ORDER BY pay_time  LIMIT ?,1`
 	rs := db.Mysql.SelectBySql(sql, values...)