sorder_after_insert.sql 337 B

12345678910
  1. drop trigger if exists sorder_after_insert;
  2. DELIMITER //
  3. create trigger sorder_after_insert after insert on dbr_sorder
  4. for each row begin
  5. insert into pro_sorder_shop (id) value (new.id) ;
  6. if new.reward_amt <> '0.0000' then
  7. call reward_bd_act('sorder', new.id, 0);
  8. end if;
  9. end //
  10. DELIMITER ;