insert into charge_machine_port( machine_id,port_name,state,port_id,port_code,community_id ) values ( #{machineId},#{portName},#{state},#{portId},#{portCode},#{communityId} ) update charge_machine_port t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.machine_id= #{machineId} , t.port_name= #{portName} , t.state= #{state} , t.port_code= #{portCode} , t.community_id= #{communityId} where 1=1 and t.port_id= #{portId}