insert into meter_machine_factory(factory_id, factory_name, remark, bean_impl) values (#{factoryId}, #{factoryName}, #{remark}, #{beanImpl}) update meter_machine_factory t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.factory_name= #{factoryName} , t.remark= #{remark} , t.bean_impl= #{beanImpl} where 1=1 and t.factory_id= #{factoryId}