Commit 21203ba4 by ‘chizw’

[+]限制优化

1 parent bfc8012c
......@@ -214,28 +214,9 @@ left join ( select
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
group by dclgoc.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
where ibr.id in (
47820,
47689,
45894,
42861,
42579,
41331,
40984,
40593,
40094,
38825,
49019,
48696,
48561,
48539,
48433,
48193,
47914,
47804,
47050,
46938
)
where (dclsm.address like '%%广东%%' or dclsm.address like '%%福建%%') and (recording_start_time like '%%2025-01%%' or recording_start_time like '%%2025-03%%')
# ibr.id in (
# )
# recording_start_time BETWEEN %s and %s
# and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
# order by t3.employee_name,ibr.recording_start_time desc
......
......@@ -45,7 +45,7 @@ class ConnPool:
def select_all(self, sql, args):
"""查询多条数据"""
if args is None:
if args is None or args == ():
log.info(f"execute_select_all sql:{sql}")
else:
log.info(f"execute_select_all sql:{sql}" % args)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!