insert into m_menu_group( g_id,name,icon,label,seq,description,group_type,store_type ) values ( #{gId},#{name},#{icon},#{label},#{seq},#{description},#{groupType},#{storeType} ) update m_menu_group t t.status_cd = #{statusCd}, t.name= #{name}, t.icon= #{icon}, t.group_type= #{groupType}, t.label= #{label}, t.seq= #{seq}, t.store_type= #{storeType}, t.description= #{description} where t.g_id= #{gId} 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} insert into m_menu( m_id,name,g_id,url,seq,p_id,description,is_show ) values ( #{mId},#{name},#{gId},#{url},#{seq},'-1',#{description},#{isShow} ) update m_menu t t.status_cd = #{statusCd}, t.name= #{name}, t.g_id= #{gId}, t.url= #{url}, t.seq= #{seq}, t.is_show= #{isShow}, t.description= #{description} where t.m_id= #{mId}