From 81e405c3b867e767a2af11f1c7f63e653d5c3a05 Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Tue, 10 Mar 2026 10:27:37 +0800 Subject: [PATCH] update ncmatch product to model --- .../get_ncmatch_publish_product_to_model.dspy | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 b/product/get_ncmatch_publish_product_to_model.dspy diff --git a/b/product/get_ncmatch_publish_product_to_model.dspy b/b/product/get_ncmatch_publish_product_to_model.dspy new file mode 100644 index 0000000..f6476dd --- /dev/null +++ b/b/product/get_ncmatch_publish_product_to_model.dspy @@ -0,0 +1,21 @@ +async def get_ncmatch_publish_product_to_model(ns={}): + db = DBPools() + async with db.sqlorContext('kboss') as sor: + try: + sql = """SELECT * FROM user_publish_product WHERE listing_status = 'listing' AND del_flg = '0';""" + result = await sor.sqlExe(sql, {}) + + return { + 'status': True, + 'msg': 'successfully retrieved published products', + 'data': result + } + except Exception as e: + return { + 'status': False, + 'msg': 'failed to retrieve published products', + 'data': e + } + +ret = await get_ncmatch_publish_product_to_model(params_kw) +return ret \ No newline at end of file