ck %!s(int64=3) %!d(string=hai) anos
pai
achega
c1895dd641
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/moniter/dd_daily.py

+ 1 - 1
app/moniter/dd_daily.py

@@ -8,7 +8,7 @@ du=DateUtils()
 
 
 def cost_data(dt=du.get_n_days(-1)):
-    sql="select count(1) from `order` where date=UNIX_TIMESTAMP('{}')".format(dt)
+    sql="select count(1) from `ods_order` where date='{}'".format(dt)
     sql2="select count(1) from daily_qq where date='{} 00:00:00' ".format(dt)
     sql3="select count(1) from daily_vx where date='{} 00:00:00' ".format(dt)
     sql4="select count(1) from daily_vx_campaign where date='{} 00:00:00' ".format(dt)