insert into invoice_event(
event_id,apply_id,create_user_id,create_user_name,remark,event_type,community_id
) values (
#{eventId},#{applyId},#{createUserId},#{createUserName},#{remark},#{eventType},#{communityId}
)
update invoice_event t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.apply_id= #{applyId}
, t.create_user_id= #{createUserId}
, t.create_user_name= #{createUserName}
, t.remark= #{remark}
, t.event_type= #{eventType}
, t.community_id= #{communityId}
where 1=1
and t.event_id= #{eventId}