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

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

/**
 * 供应商 Mapper
 */
public interface BizSupplierMapper
{
    BizSupplier selectBizSupplierById(Long id);

    BizSupplier selectBizSupplierByIdAny(Long id);

    BizSupplier selectBizSupplierBySysUserId(@Param("sysUserId") Long sysUserId);

    String selectMaxSupplierCodeForUpdate();

    int countBizSupplierByNameExcludeId(@Param("supplierName") String supplierName,
            @Param("excludeId") Long excludeId);

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

    List<BizSupplier> selectBizSupplierList(BizSupplier query);

    int insertBizSupplier(BizSupplier row);

    int updateBizSupplier(BizSupplier row);

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