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

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

/**
 * 商品服务 Mapper
 */
public interface BizGoodsServiceMapper
{
    BizGoodsService selectById(@Param("serviceId") Long serviceId);

    List<BizGoodsService> selectList(BizGoodsService query);

    List<BizGoodsService> selectAllEnabled();

    List<BizGoodsService> selectDefaultShowEnabled();

    int countByName(@Param("serviceName") String serviceName, @Param("excludeId") Long excludeId);

    int existsGoodsRef(@Param("serviceId") Long serviceId);

    int insert(BizGoodsService row);

    int update(BizGoodsService row);

    int logicDeleteByIds(@Param("ids") List<Long> ids, @Param("updateBy") String updateBy);
}
