This commit is contained in:
ping 2026-08-05 10:00:27 +08:00
parent d17712b4f6
commit 02fc6dbbdd

View File

@ -4,7 +4,7 @@ async def search_user_inquiry_dict(ns={}):
where_sql = "where status = 1" where_sql = "where status = 1"
if ns.get('dict_type'): if ns.get('dict_type'):
where_sql += " and dict_type = '%s'" % ns.get('dict_type') where_sql += " and dict_type = '%s'" % ns.get('dict_type')
search_sql = """select id, dict_type, dict_key, dict_value, sort_order from product_inquiry_dict %s order by dict_type asc, sort_order asc;""" % where_sql search_sql = """select * from product_inquiry_dict %s order by dict_type asc, sort_order asc;""" % where_sql
result = await sor.sqlExe(search_sql, {}) result = await sor.sqlExe(search_sql, {})
return { return {
'status': True, 'status': True,