insert into machine_printer( impl_bean,machine_id,machine_code,community_id,machine_name ) values ( #{implBean},#{machineId},#{machineCode},#{communityId},#{machineName} ) update machine_printer t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.impl_bean= #{implBean} , t.machine_code= #{machineCode} , t.community_id= #{communityId} , t.machine_name= #{machineName} where 1=1 and t.machine_id= #{machineId}