insert into data_privilege(
code,dp_id,name,remark,community_id
) values (
#{code},#{dpId},#{name},#{remark},#{communityId}
)
update data_privilege t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.code= #{code}
, t.name= #{name}
, t.remark= #{remark}
where 1=1
and t.dp_id= #{dpId}
and t.community_id= #{communityId}