package com.yhy.module.core.dal.mysql.resource;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import com.yhy.module.core.dal.dataobject.resource.ResourceItemDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ResourceItemMapper extends BaseMapperX<ResourceItemDO> {

    /**
     * 根据工料机机类树节点ID查询工料机列表
     * 
     * 用于定额子目工料机的范围过滤
     */
    default List<ResourceItemDO> selectByCategoryTreeId(Long categoryTreeId) {
        return selectList("category_tree_id", categoryTreeId);
    }
}
