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 ,create_time ) values ( #{primeRate},#{detailId},#{receivableAmount},#{cycles},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime},#{communityId},#{feeId},#{bId},#{payableAmount},#{payOrderId} ,#{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.community_id= #{communityId} , t.fee_id= #{feeId} , t.pay_order_id= #{payOrderId} where 1=1 and t.detail_id= #{detailId} and t.community_id= #{communityId} and t.fee_id= #{feeId}