insert into report_fee_year_collection_detail( collection_year,relation_year,detail_id,receivable_amount,received_amount,community_id,collection_id ) values ( #{collectionYear},#{relationYear},#{detailId},#{receivableAmount},#{receivedAmount},#{communityId},#{collectionId} ) update report_fee_year_collection_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.collection_year= #{collectionYear} , t.relation_year= #{relationYear} , t.receivable_amount= #{receivableAmount} , t.received_amount= #{receivedAmount} where 1=1 and t.detail_id= #{detailId} and t.community_id= #{communityId} and t.collection_id= #{collectionId}