insert into pay_fee_detail_discount(detail_discount_id, discount_price, detail_id, remark, community_id, discount_id, fee_id, b_id) values (#{detailDiscountId}, #{discountPrice}, #{detailId}, #{remark}, #{communityId}, #{discountId}, #{feeId}, #{bId}) update pay_fee_detail_discount t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.discount_price= #{discountPrice} , t.detail_id= #{detailId} , t.remark= #{remark} , t.community_id= #{communityId} , t.discount_id= #{discountId} , t.fee_id= #{feeId} where 1=1 and t.detail_discount_id= #{detailDiscountId}