insert into business_temp_car_fee_config_attr(
attr_id,operate,config_id,spec_cd,b_id,value,community_id
) values (
#{attrId},#{operate},#{configId},#{specCd},#{bId},#{value},#{communityId}
)
insert into temp_car_fee_config_attr(
attr_id,config_id,spec_cd,status_cd,b_id,value,community_id
) select t.attr_id,t.config_id,t.spec_cd,'0',t.b_id,t.value,t.community_id
from business_temp_car_fee_config_attr
t where 1=1
and t.attr_id= #{attrId}
and t.operate= 'ADD'
and t.create_time= #{createTime}
and t.config_id= #{configId}
and t.spec_cd= #{specCd}
and t.b_id= #{bId}
and t.value= #{value}
update temp_car_fee_config_attr t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.config_id= #{configId}
, t.spec_cd= #{specCd}
, t.value= #{value}
where 1=1
and t.attr_id= #{attrId}
and t.b_id= #{bId}
and t.community_id= #{communityId}