package jnpf.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.entity.cultivate.CultivateIdentifyItems;
import jnpf.model.cultivate.dto.learn.BatchCommonCountDto;
import jnpf.model.cultivate.vo.identify.IdentifyItemsWithCategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 实操鉴定项表
 * 
 * @author shitou
 * @email shitou@niujiekeji.com
 * @date 2023-12-19 11:10:53
 */
@Mapper
@Component
public interface CultivateIdentifyItemsMapper extends BaseMapper<CultivateIdentifyItems> {

    List<BatchCommonCountDto> countForTableId(@Param("ids") List<String> ids);

    /**
     * 查询鉴定项列表并关联分类名称
     *
     * @param tableId 查询条件
     * @return 鉴定项列表（含分类名称）
     */
    List<IdentifyItemsWithCategoryVo> listWithCategory(@Param("tableId") String tableId);
}
