package com.ruoyi.web.modules.trading.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.trading.domain.BizDistributor;

/**
 * 承销商 Mapper
 */
public interface BizDistributorMapper
{
    BizDistributor selectBizDistributorById(Long id);

    BizDistributor selectBizDistributorByIdAny(Long id);

    BizDistributor selectBizDistributorBySysUserId(@Param("sysUserId") Long sysUserId);

    String selectMaxDistributorCodeForUpdate();

    int countBizDistributorByNameExcludeId(@Param("distributorName") String distributorName,
            @Param("excludeId") Long excludeId);

    int countBizDistributorByIdentityNoExcludeId(@Param("identityNo") String identityNo,
            @Param("excludeId") Long excludeId);

    List<BizDistributor> selectBizDistributorList(BizDistributor query);

    int insertBizDistributor(BizDistributor row);

    int updateBizDistributor(BizDistributor row);

    int logicDeleteBizDistributorByIds(@Param("ids") Long[] ids, @Param("updateBy") String updateBy);
}
