From 528b1892d8e929b199dddc96f3a43f9b8039c8c8 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 06 六月 2024 18:00:42 +0800 Subject: [PATCH] 模板接口打通 --- src/main/java/com/ycl/jxkg/service/impl/SubjectServiceImpl.java | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/service/impl/SubjectServiceImpl.java b/src/main/java/com/ycl/jxkg/service/impl/SubjectServiceImpl.java index 9e2a967..8ec423c 100644 --- a/src/main/java/com/ycl/jxkg/service/impl/SubjectServiceImpl.java +++ b/src/main/java/com/ycl/jxkg/service/impl/SubjectServiceImpl.java @@ -4,7 +4,7 @@ import com.ycl.jxkg.domain.entity.Subject; import com.ycl.jxkg.mapper.SubjectMapper; import com.ycl.jxkg.service.SubjectService; -import com.ycl.jxkg.vo.admin.education.SubjectPageRequestVO; +import com.ycl.jxkg.domain.vo.admin.education.SubjectPageRequestVO; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.RequiredArgsConstructor; @@ -29,13 +29,8 @@ } @Override - public Integer levelBySubjectId(Integer id) { - return baseMapper.selectById(id).getLevel(); - } - - @Override public PageInfo<Subject> page(SubjectPageRequestVO requestVM) { - return PageHelper.startPage(requestVM.getPageIndex(), requestVM.getPageSize(), "id desc").doSelectPageInfo(() -> + return PageHelper.startPage(requestVM.getPageIndex(), requestVM.getPageSize(), "item_order").doSelectPageInfo(() -> subjectMapper.page(requestVM) ); } -- Gitblit v1.8.0