|
@@ -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 '
|