浏览代码

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

guanhailong 2 年之前
父节点
当前提交
a2ec636d27
共有 1 个文件被更改,包括 4 次插入4 次删除
  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 '