修正 bug

This commit is contained in:
2026-03-16 00:38:53 +08:00
parent b010c19339
commit e49288b6e3
4 changed files with 55 additions and 53 deletions
+4 -1
View File
@@ -19,9 +19,12 @@ CREATE OR REPLACE PROCEDURE bpm_sign_history (
BEGIN
-- token 轉 userid
DECLARE v_userid VARCHAR(20);
-- 根據傳入的 token 取得 userid, 並會判斷 token 是否仍有效(無效傳回空白)
main_block: BEGIN
-- 取得 userid
SELECT userid INTO v_userid FROM sys_users WHERE token = p_token;
IF v_userid = '' THEN
LEAVE main_block; -- 結束程序
END IF;