src/main/java/com/mzl/flower/mapper/film/FilmCategoryMapper.java
@@ -6,6 +6,7 @@ import com.mzl.flower.entity.film.FilmCategory; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; @@ -21,4 +22,8 @@ * 查询分类树列表 */ List<FilmCategoryTreeDTO> selectTreeList(FilmCategoryQueryDTO dto); } @Select("select * from t_film_category where parent_id is null and shown = '1' and deleted = '0' ") List<FilmCategory> getParentCategoryList(); }