insert into fee_collection_order(
order_id,staff_name,state,community_id,collection_way,staff_id,remark,collection_name
) values (
#{orderId},#{staffName},#{state},#{communityId},#{collectionWay},#{staffId},#{remark},#{collectionName}
)
update fee_collection_order t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.staff_name= #{staffName}
, t.state= #{state}
, t.community_id= #{communityId}
, t.collection_way= #{collectionWay}
, t.staff_id= #{staffId}
, t.remark= #{remark}
, t.collection_name= #{collectionName}
where 1=1
and t.order_id= #{orderId}