insert into charge_rule_fee(
max_energy_price,duration_price,crf_id,remark,rule_id,min_energy_price,community_id
) values (
#{maxEnergyPrice},#{durationPrice},#{crfId},#{remark},#{ruleId},#{minEnergyPrice},#{communityId}
)
update charge_rule_fee t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.max_energy_price= #{maxEnergyPrice}
, t.duration_price= #{durationPrice}
, t.remark= #{remark}
, t.rule_id= #{ruleId}
, t.min_energy_price= #{minEnergyPrice}
, t.min_energy_price= #{minEnergyPrice}
where 1=1
and t.crf_id= #{crfId}
and t.community_id= #{communityId}