保存进度!

This commit is contained in:
2023-09-25 16:23:26 +08:00
parent 099a1e65f6
commit 64824e6f74
9 changed files with 126 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ CREATE OR REPLACE PACKAGE telsaler_reward_pkg IS
a_telsaler_name VARCHAR2
);
PROCEDURE save_telsaler_reward
PROCEDURE update_telsaler_reward
(
a_rec_id INTEGER,
a_telsaler_name VARCHAR2,
@@ -47,14 +47,14 @@ CREATE OR REPLACE PACKAGE BODY telsaler_reward_pkg IS
COMMIT;
END;
PROCEDURE save_telsaler_reward
PROCEDURE update_telsaler_reward
(
a_rec_id INTEGER,
a_telsaler_name VARCHAR2,
a_reward_index VARCHAR2
) IS
BEGIN
MERGE INTO telsaler_reward r
/*MERGE INTO telsaler_reward r
USING (SELECT COUNT(*) COUNT
FROM telsaler_reward
WHERE rec_id = a_rec_id) a
@@ -70,7 +70,17 @@ CREATE OR REPLACE PACKAGE BODY telsaler_reward_pkg IS
telsaler_name)
VALUES
(a_reward_index,
a_telsaler_name);
a_telsaler_name);*/
BEGIN
UPDATE telsaler_reward r
SET r.reward_index = a_reward_index,
r.telsaler_name = a_telsaler_name
WHERE r.rec_id = a_rec_id;
EXCEPTION
WHEN no_data_found THEN
raise_application_error(-20002,
'<27>޴˼<DEB4>¼<EFBFBD><C2BC>');
END;
COMMIT;
END;