insert into pay_fee_rule_bill(
bill_name,config_id,bill_id,cur_year_month,remark,rule_id,community_id,batch_id,fee_id
) values (
#{billName},#{configId},#{billId},#{curYearMonth},#{remark},#{ruleId},#{communityId},#{batchId},#{feeId}
)
update pay_fee_rule_bill t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.bill_name= #{billName}
, t.config_id= #{configId}
, t.cur_year_month= #{curYearMonth}
, t.remark= #{remark}
, t.rule_id= #{ruleId}
, t.community_id= #{communityId}
, t.batch_id= #{batchId}
, t.fee_id= #{feeId}
where 1=1
and t.bill_id= #{billId}