这样写就行了。如果比是1,2,3,就return返回。
if product_type not in (1, 2, 3) then
return;
end if;
如果product_type是字符串变量:
if product_type not in ('1', '2', '3') then
return;
end if;
if product_type = 1 or product_type = 2 or product_type = 3 then
--要执行的代码
else
end if;