package com.cool.store.mapper.config;

import com.cool.store.entity.config.ConfigItemDO;
import com.cool.store.vo.config.ConfigItemBaseInfoVO;
import com.cool.store.vo.config.ConfigItemCategoryBaseInfoVO;
import com.cool.store.vo.config.ConfigItemVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ConfigItemMapper extends Mapper<ConfigItemDO> {

    List<ConfigItemVO> queryByCondition(@Param("itemName") String itemName,
                                        @Param("itemCode") String itemCode,
                                        @Param("categoryId") Long categoryId,
                                        @Param("status") Integer status);

    List<ConfigItemBaseInfoVO> queryAllActiveList();

    int countByCategoryIds(@Param("categoryIds") List<Long> categoryIds);
}
