insert into data_privilege_staff(
dps_id,dp_id,staff_name,remark,community_id,staff_id
) values (
#{dpsId},#{dpId},#{staffName},#{remark},#{communityId},#{staffId}
)
update data_privilege_staff t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.dp_id= #{dpId}
, t.staff_name= #{staffName}
, t.remark= #{remark}
, t.staff_id= #{staffId}
where 1=1
and t.community_id= #{communityId}
and t.dps_id= #{dpsId}