insert into p_privilege_group(
pg_id,domain,name,description,store_id,role_type
) values (
#{pgId},#{domain},#{name},#{description},#{storeId},#{roleType}
)
update p_privilege_group t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.domain= #{domain}
, t.name= #{name}
, t.description= #{description}
, t.store_id= #{storeId}
, t.role_type= #{roleType}
where 1=1
and t.pg_id= #{pgId}