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