insert into work_event(
event_id,pre_staff_name,pre_staff_id,staff_name,remark,community_id,store_id,task_id,work_id,staff_id
) values (
#{eventId},#{preStaffName},#{preStaffId},#{staffName},#{remark},#{communityId},#{storeId},#{taskId},#{workId},#{staffId}
)
update work_event t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.pre_staff_name= #{preStaffName}
, t.pre_staff_id= #{preStaffId}
, t.staff_name= #{staffName}
, t.remark= #{remark}
, t.task_id= #{taskId}
, t.work_id= #{workId}
, t.staff_id= #{staffId}
where 1=1
and t.event_id= #{eventId}
and t.community_id= #{communityId}
and t.store_id= #{storeId}