diff --git a/json/product_list.json b/json/product_list.json index 21405fd..5517e1e 100644 --- a/json/product_list.json +++ b/json/product_list.json @@ -38,10 +38,8 @@ } }, "editexclouded": ["id", "created_by", "created_at", "updated_at", "org_id"], - "editable": { - "new_data_url": "{{entire_url('../api/product_create.dspy')}}", - "update_data_url": "{{entire_url('../api/product_update.dspy')}}", - "delete_data_url": "{{entire_url('../api/product_delete.dspy')}}" - } + "new_data_url": "{{entire_url('/product_management/api/product_create.dspy')}}", + "update_data_url": "{{entire_url('/product_management/api/product_update.dspy')}}", + "delete_data_url": "{{entire_url('/product_management/api/product_delete.dspy')}}" } -} +} \ No newline at end of file diff --git a/wwwroot/product_list/get_product.dspy b/wwwroot/product_list/get_product.dspy index fc2a3df..9e1a6f9 100644 --- a/wwwroot/product_list/get_product.dspy +++ b/wwwroot/product_list/get_product.dspy @@ -3,6 +3,8 @@ ns = params_kw.copy() userorgid = await get_userorgid() +userid = await get_user() +info(f'[get_product] userorgid={userorgid} userid={userid} ns_keys={list(ns.keys())[:10]}') if not userorgid: return { "widgettype":"Error", @@ -16,6 +18,7 @@ if not userorgid: } ns['org_id'] = userorgid ns['userorgid'] = userorgid +del ns['org_id'] # 防止 default_filterjson 生成 AND org_id=... 抵消 OR 子查询 debug(f'get_product.dspy:{ns=}') if not ns.get('page'):