DECLARE CONTINUE HANDLER FOR SQLWARNING, SQLEXCEPTION, NOT FOUND BEGIN GET DIAGNOSTICS CONDITION code_t = MYSQL_ERRNO, msg = MESSAGE_TEXT; ; SET l_step1 = code_t; -- 如果是锁异常 告警 THEN CALL sp_SN_dbwarning(, 'Sp_SN_ChargeBegin0_Acc', 'lock', v_HfSerialid