From b005f8a8669cdea0f1738172d7c13da57a1237e2 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 29 十月 2024 17:06:23 +0800 Subject: [PATCH] 增加了重置密码的功能 --- src/main/java/com/ycl/jxkg/mapper/SubjectMapper.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/mapper/SubjectMapper.java b/src/main/java/com/ycl/jxkg/mapper/SubjectMapper.java index c9d297e..abc041f 100644 --- a/src/main/java/com/ycl/jxkg/mapper/SubjectMapper.java +++ b/src/main/java/com/ycl/jxkg/mapper/SubjectMapper.java @@ -1,9 +1,11 @@ package com.ycl.jxkg.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.ycl.jxkg.domain.Subject; -import com.ycl.jxkg.vo.admin.education.SubjectPageRequestVO; +import com.ycl.jxkg.domain.entity.Subject; +import com.ycl.jxkg.domain.vo.admin.education.SubjectPageRequestVO; +import com.ycl.jxkg.domain.vo.admin.education.SubjectResponseVO; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Select; import java.util.List; @@ -14,5 +16,8 @@ List<Subject> allSubject(); - List<Subject> page(SubjectPageRequestVO requestVM); + List<SubjectResponseVO> page(SubjectPageRequestVO requestVM); + + @Select("select ifnull(count(*) + 1, 1) from t_subject where deleted = 0") + Integer getItemOrder(); } -- Gitblit v1.8.0