insert into pay_fee_rule(
max_time,amount,fee_type_cd,cur_year_month,batch_id,user_id,income_obj_id,config_id,fee_flag,start_time,end_time,state,rule_id,community_id,payer_obj_type,payer_obj_id
) values (
#{maxTime},#{amount},#{feeTypeCd},#{curYearMonth},#{batchId},#{userId},#{incomeObjId},#{configId},#{feeFlag},#{startTime},#{endTime},#{state},#{ruleId},#{communityId},#{payerObjType},#{payerObjId}
)
insert into pay_fee_rule(
max_time,amount,fee_type_cd,cur_year_month,batch_id,user_id,income_obj_id,config_id,fee_flag,
start_time,end_time,state,rule_id,community_id,payer_obj_type,payer_obj_id
) values
(
#{item.maxTime},#{item.amount},#{item.feeTypeCd},#{item.curYearMonth},#{item.batchId},#{item.userId},
#{item.incomeObjId},#{item.configId},#{item.feeFlag},#{item.startTime},#{item.endTime},#{item.state},#{item.ruleId},
#{item.communityId},#{item.payerObjType},#{item.payerObjId}
)
update pay_fee_rule t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.max_time= #{maxTime}
, t.amount= #{amount}
, t.fee_type_cd= #{feeTypeCd}
, t.secondary_fee_type_cd= #{secondaryFeeTypeCd}
, t.cur_year_month= #{curYearMonth}
, t.user_id= #{userId}
, t.income_obj_id= #{incomeObjId}
, t.fee_flag= #{feeFlag}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.state= #{state}
, t.payer_obj_type= #{payerObjType}
, t.payer_obj_id= #{payerObjId}
where 1=1
and t.rule_id= #{ruleId}
and t.community_id= #{communityId}
and t.batch_id= #{batchId}
and t.config_id= #{configId}