sql数据流,amdin业务逻辑接入
This commit is contained in:
@@ -22,7 +22,7 @@ CREATE OR REPLACE FUNCTION public.rpc_admin_user_list(
|
||||
RETURNS TABLE (
|
||||
total BIGINT,
|
||||
page INTEGER,
|
||||
limit INTEGER,
|
||||
page_limit INTEGER,
|
||||
has_more BOOLEAN,
|
||||
items JSONB
|
||||
)
|
||||
@@ -149,7 +149,7 @@ BEGIN
|
||||
SELECT
|
||||
v_total,
|
||||
p_page,
|
||||
p_limit,
|
||||
p_limit AS page_limit,
|
||||
(v_offset + p_limit) < v_total as has_more,
|
||||
COALESCE(v_items, '[]'::jsonb) as items;
|
||||
END;
|
||||
|
||||
Reference in New Issue
Block a user