insert into business_temp_car_fee_config(car_type, operate, config_id, fee_name, pa_id, area_num, start_time, end_time, b_id, rule_id, community_id, fee_config_id) values (#{carType}, #{operate}, #{configId}, #{feeName}, #{paId}, #{areaNum}, #{startTime}, #{endTime}, #{bId}, #{ruleId}, #{communityId}, #{feeConfigId}) insert into temp_car_fee_config( car_type,config_id,fee_name,pa_id,area_num,status_cd,start_time,end_time,b_id,rule_id,community_id,fee_config_id ) select t.car_type,t.config_id,t.fee_name,t.pa_id,t.area_num,'0',t.start_time,t.end_time,t.b_id,t.rule_id,t.community_id,t.fee_config_id from business_temp_car_fee_config t where 1=1 and t.car_type= #{carType} and t.operate= 'ADD' and t.config_id= #{configId} and t.fee_name= #{feeName} and t.pa_id= #{paId} and t.area_num= #{areaNum} and t.start_time= #{startTime} and t.end_time= #{endTime} and t.b_id= #{bId} and t.rule_id= #{ruleId} and t.community_id= #{communityId} update temp_car_fee_config t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.car_type= #{carType} , t.fee_name= #{feeName} , t.pa_id= #{paId} , t.area_num= #{areaNum} , t.start_time= #{startTime} , t.end_time= #{endTime} , t.rule_id= #{ruleId} , t.community_id= #{communityId} where 1=1 and t.config_id= #{configId} and t.b_id= #{bId}