Browse Source

修改4G订单用户/uid/序列号查询

guanhailong 2 years ago
parent
commit
a2ec636d27
1 changed files with 4 additions and 4 deletions
  1. 4 4
      AdminController/UnicomManageController.py

+ 4 - 4
AdminController/UnicomManageController.py

@@ -163,13 +163,13 @@ class UnicomManageControllerView(View):
             sql += 'WHERE o.order_type = %s '
             param_list = [2]
             if user_name:
-                sql += "and du.username LIKE '%%s%' "
+                sql += "and du.username LIKE %s "
                 param_list.append(user_name)
             if uid:
-                sql += "and o.UID LIKE '%%s%' "
+                sql += "and o.UID LIKE %s "
                 param_list.append(uid)
-            if uid:
-                sql += "and udi.serial_no LIKE '%%s%' "
+            if serial_no:
+                sql += "and udi.serial_no LIKE %s "
                 param_list.append(serial_no)
             if combo_use_type:
                 sql += 'and uo.status = %s '