package com.njcn.gather.icd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseMapper;
import com.njcn.gather.icd.pojo.po.PqIcdPath;
import com.njcn.gather.icd.pojo.vo.PqIcdExportJsonVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author caozehui
 * @date 2025-02-10
 */
public interface PqIcdPathMapper extends MPJBaseMapper<PqIcdPath> {

    /**
     * 根据设备类型id获取Icd
     *
     * @param devTypeId
     * @return
     */
    PqIcdPath selectIcdByDevType(@Param("devTypeId") String devTypeId);

    List<PqIcdPath> selectPageList(Page<PqIcdPath> page, @Param("name") String name);

    List<PqIcdPath> selectStandardList();

    PqIcdPath selectStandardByName(@Param("name") String name);

    List<PqIcdPath> selectByIdsWithoutBlob(@Param("ids") List<String> ids);

    Long countActiveReferencesToStandards(@Param("standardIds") List<String> standardIds);

    PqIcdPath selectDetailById(@Param("id") String id);

    PqIcdPath selectExportById(@Param("id") String id);

    List<PqIcdExportJsonVO> selectExportJsonByIds(@Param("ids") List<String> ids);
}

