insert into p_privilege_rel(
p_id,pg_id
) values (
#{pId},#{pgId}
)
insert into p_privilege(
p_id,name,resource,domain,description,m_id
) values (
#{pId},#{name},#{resource},#{domain},#{description},#{mId}
)
update p_privilege t
t.status_cd = #{statusCd},
t.name= #{name},
t.resource= #{resource},
t.domain= #{domain},
t.description= #{description}
where t.p_id= #{pId}
update p_privilege_rel t
t.status_cd = #{statusCd},
t.pg_id= #{pgId},
where t.p_id= #{pId}