package com.jwipc.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.DealtWithTargetType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.sys.model.dto.WorkbenchDwtDto;
import com.jwipc.sys.model.po.DealtWithTargetTypePO;
import com.jwipc.sys.model.query.DealtTypeQuery;

import java.util.List;

/**
 * <p>
 * 指标分类 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-30
 */
public interface IDealtWithTargetTypeService extends IService<DealtWithTargetType> {

    List<DealtWithTargetTypePO> findPageByQuery(Page<DealtWithTargetType> dbPage, DealtTypeQuery query);

    /**
     * 根据指标分类ID获取工作台页面中指标分类数据
     *
     * @param ttIdList 指标分类ID集合(已包含了当前登录人的角色权限了)
     * @return 结果
     */
    List<WorkbenchDwtDto> findByTtIdList(List<Long> ttIdList);

    List<DealtWithTargetType> findByIds(List<Long> ttIdList);
}
