insert into workflow_step_staff(
wss_id,staff_role,step_id,staff_name,community_id,fee_id,staff_id,flow_type
) values (
#{wssId},#{staffRole},#{stepId},#{staffName},#{communityId},#{feeId},#{staffId},#{flowType}
)
update workflow_step_staff t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.staff_role= #{staffRole}
, t.step_id= #{stepId}
, t.staff_name= #{staffName}
, t.community_id= #{communityId}
, t.fee_id= #{feeId}
, t.staff_id= #{staffId}
, t.flow_type= #{flowType}
where 1=1
and t.wss_id= #{wssId}