INSERT INTO public.resource (code, name, parent_resource) VALUES ('CHECKREPORT', '巡检报告', 'PATROL_MANAGE'); DELETE FROM public.user_resource WHERE id = 19; INSERT INTO public.user_resource (id,user_id,resource) VALUES (19, 1, 'CHECKREPORT');