| | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.base.entity.Factory; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | |
| | | */ |
| | | public interface FactoryMapper extends BaseMapper<Factory> { |
| | | |
| | | /** |
| | | * 根据id下级产线 |
| | | */ |
| | | @Select("SELECT * FROM base_factory where del_flag ='0' AND parent_id = #{parentId,jdbcType=VARCHAR}") |
| | | List<Factory> queryFacByPid(@Param("parentId") String parentId); |
| | | |
| | | /** |
| | | * 递归查询所有子节点 |
| | | */ |
| | | List<String> recursionChildren(@Param("factoryId") String factoryId); |
| | | } |