package com.njcn.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.system.pojo.po.TemplateRel;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * Mapper接口
 * @author hany
 * @date 2022/09/30
 */
public interface TemplateRelMapper extends BaseMapper<TemplateRel> {

    /**
     * 根据模板id查询绑定关系
     * @param ids ID集合
     */
    List<TemplateRel> selectRelevance (@Param("ids") List<String> ids);

    boolean batchInsert (@Param("list") List<TemplateRel> list);

    boolean deleteByRtId (@Param("rtId") String id);

    List<String> selectReleation (@Param("id") String id);
}
