@Override
    public int updateSelective(final SelectorDO selectorDO) {
        final SelectorDO before = selectorMapper.selectById(selectorDO.getId());
        final int updateCount = selectorMapper.updateSelective(selectorDO);
        if (updateCount > 0) {
            selectorEventPublisher.onUpdated(selectorDO, before);
        }
        return updateCount;
    }
create or update selector.

@param selectorDTO {@linkplain SelectorDTO}
@return rows
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/SelectorServiceImpl.java