insert into pay_fee_detail( prime_rate,detail_id,receivable_amount,cycles,remark,start_time,received_amount,state,end_time,community_id, fee_id,b_id,payable_amount,pay_order_id,cashier_id,cashier_name,open_invoice, acct_amount,discount_amount,deduction_amount,late_amount,gift_amount ,create_time ) values ( #{primeRate},#{detailId},#{receivableAmount},#{cycles},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime},#{communityId}, #{feeId},#{bId},#{payableAmount},#{payOrderId},#{cashierId},#{cashierName},#{openInvoice}, #{acctAmount},#{discountAmount},#{deductionAmount},#{lateAmount},#{giftAmount} ,#{createTime} ) update pay_fee_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.prime_rate= #{primeRate} , t.receivable_amount= #{receivableAmount} , t.cycles= #{cycles} , t.remark= #{remark} , t.start_time= #{startTime} , t.received_amount= #{receivedAmount} , t.payable_amount= #{payableAmount} , t.state= #{state} , t.end_time= #{endTime} , t.pay_order_id= #{payOrderId} , t.cashier_id= #{cashierId} , t.cashier_name= #{cashierName} , t.open_invoice= #{openInvoice} where 1=1 and t.detail_id= #{detailId} and t.community_id= #{communityId} and t.fee_id= #{feeId}