springboot-vue3/src/main/java/com/example/springboot/mapper/MenuListMapper.java
New file @@ -0,0 +1,16 @@ package com.example.springboot.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.example.springboot.entity.MenuList; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository public interface MenuListMapper extends BaseMapper<MenuList> { List<MenuList> findByParent(Long parent); List<MenuList> findByParentNull(); }