package org.jeecg.modules.regular.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.regular.entity.RegularTools;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 检修工具
 * @Author: jeecg-boot
 * @Date:   2025-01-16
 * @Version: V1.0
 */
public interface RegularToolsMapper extends BaseMapper<RegularTools> {

    @Select("SELECT * FROM bu_regular_tools WHERE regular=(SELECT regular_id FROM bu_regular_detail WHERE id=#{detailId})")
    List<RegularTools> queryListByDetailId(@Param("detailId") String detailId);
}
