insert into coupon_rule_fee(
pay_month,pay_start_time,pay_end_time,crf_id,rule_id,community_id,fee_config_id,fee_config_name
) values (
#{payMonth},#{payStartTime},#{payEndTime},#{crfId},#{ruleId},#{communityId},#{feeConfigId},#{feeConfigName}
)
update coupon_rule_fee t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.pay_month= #{payMonth}
, t.pay_start_time= #{payStartTime}
, t.pay_end_time= #{payEndTime}
, t.rule_id= #{ruleId}
, t.community_id= #{communityId}
, t.fee_config_id= #{feeConfigId}
, t.fee_config_name= #{feeConfigName}
where 1=1
and t.crf_id= #{crfId}