INSERT INTO custom_button ( tenantId, formId, type, buttonName, methodName, DELETEFLG, buttonId ) VALUES (#{item.tenantID},#{item.formID},#{item.type},#{item.buttonName},#{item.methodName},0,#{item.buttonId}) UPDATE custom_button SET DELETEFLG = 1 WHERE id = #{id} update custom_button SET buttonName = #{custom.buttonName},methodName = #{custom.methodName},buttonId = #{custom.buttonId} WHERE id = #{custom.id}