insert into r_repair_event(
event_id,staff_name,repair_id,remark,event_type,community_id,staff_id
) values (
#{eventId},#{staffName},#{repairId},#{remark},#{eventType},#{communityId},#{staffId}
)
update r_repair_event t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.staff_name= #{staffName}
, t.repair_id= #{repairId}
, t.remark= #{remark}
, t.event_type= #{eventType}
, t.staff_id= #{staffId}
where 1=1
and t.event_id= #{eventId}
and t.community_id= #{communityId}