insert into meter_machine_spec( spec_id,machine_id,spec_name,spec_value,community_id,mms_id ) values ( #{specId},#{machineId},#{specName},#{specValue},#{communityId},#{mmsId} ) update meter_machine_spec t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.spec_name= #{specName} , t.spec_value= #{specValue} where 1=1 and t.mms_id= #{mmsId} and t.community_id= #{communityId} and t.spec_id= #{specId} and t.machine_id= #{machineId}