cxyu 3 лет назад
Родитель
Сommit
2eb2b21c8d
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      handlers/OrderHandler.py

+ 4 - 4
handlers/OrderHandler.py

@@ -121,11 +121,11 @@ class OrderInfo(BaseHandler):
 
         op1 = f" and h.pitcher ='{pitcher}' " if pitcher else ''
         op2 = f" and c.wx_name='{channel}'" if channel else ''
-        op3 = f" and from_unixtime(a.create_time) >='{start}' " if start else ''
-        op4 = f" and from_unixtime(a.create_time) <='{end}' " if end else ''
+        op3 = f" and from_unixtime(a.create_time) >'{start}' " if start else ''
+        op4 = f" and from_unixtime(a.create_time) <'{end}' " if end else ''
         op5 = f" and CONVERT (g.role_name USING utf8)='{role_name}' " if role_name else ''
-        op6 = f" and from_unixtime(d.create_time) >='{user_start}' " if user_start else ''
-        op7 = f" and from_unixtime(d.create_time) <='{user_end}' " if user_end else ''
+        op6 = f" and from_unixtime(d.create_time) >'{user_start}' " if user_start else ''
+        op7 = f" and from_unixtime(d.create_time) <'{user_end}' " if user_end else ''
         op8 = f" and a.order_id='{order_id}'" if order_id else ''
         op9 = f" and a.mem_id='{member_id}'" if member_id else ''
         op10 = f" and a.status={status} " if status else ''