From f86001adfbe2e322c8329fee037200fffa2873cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=96=AF=E7=84=B6?= <2286974448@qq.com> Date: Wed, 27 Oct 2021 08:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=A2=93=E5=BA=B7=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E5=86=B2=E7=AA=81=E7=9A=84=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ .../service/UserService.java | 2 ++ .../service/impl/ClassServiceImpl.java | 2 +- .../service/impl/UserServiceImpl.java | 19 +++++++++++-------- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index a3bd859..3f4bcd0 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ build/ ### VS Code ### .vscode/ +/.mvn/wrapper/MavenWrapperDownloader.java +/.mvn/wrapper/maven-wrapper.jar +/.mvn/wrapper/*.properties diff --git a/src/main/java/com/mobile_education_platform/service/UserService.java b/src/main/java/com/mobile_education_platform/service/UserService.java index dcfd372..a1cbf37 100644 --- a/src/main/java/com/mobile_education_platform/service/UserService.java +++ b/src/main/java/com/mobile_education_platform/service/UserService.java @@ -23,6 +23,8 @@ public interface UserService extends IService { * @return User对象 */ User getByUserNumber(String userNumber); + + /** * @Description: 根据openid判断该用户为新老用户 * @param openid 用户唯一id * @return 返回查询的结果(用户是否已保定身份,若已绑定需提供身份信息) diff --git a/src/main/java/com/mobile_education_platform/service/impl/ClassServiceImpl.java b/src/main/java/com/mobile_education_platform/service/impl/ClassServiceImpl.java index 195c983..8ba98b1 100644 --- a/src/main/java/com/mobile_education_platform/service/impl/ClassServiceImpl.java +++ b/src/main/java/com/mobile_education_platform/service/impl/ClassServiceImpl.java @@ -61,7 +61,7 @@ public class ClassServiceImpl extends ServiceImpl implements return map; } - + /** * 功能: 根据classId和gradeId查询Class * @author: 陈梓康 * @Created: 2021/10/26 20:07 diff --git a/src/main/java/com/mobile_education_platform/service/impl/UserServiceImpl.java b/src/main/java/com/mobile_education_platform/service/impl/UserServiceImpl.java index db5df9a..0c53fba 100644 --- a/src/main/java/com/mobile_education_platform/service/impl/UserServiceImpl.java +++ b/src/main/java/com/mobile_education_platform/service/impl/UserServiceImpl.java @@ -29,6 +29,16 @@ import java.util.Map; @Service public class UserServiceImpl extends ServiceImpl implements UserService { + + @Resource + private TeacherMapper teacherMapper; + + @Resource + private StudentMapper studentMapper; + + @Resource + private ParentMapper parentMapper; + /** * 功能: 通过userNumber来获取User对象 * @author: 陈梓康 @@ -40,14 +50,7 @@ public class UserServiceImpl extends ServiceImpl implements Us public User getByUserNumber(String userNumber) { QueryWrapper queryWrapper = new QueryWrapper().eq("user_number", userNumber); return baseMapper.selectOne(queryWrapper); - @Resource - private TeacherMapper teacherMapper; - - @Resource - private StudentMapper studentMapper; - - @Resource - private ParentMapper parentMapper; + } /** * @Description: 根据openid判断该用户为新老用户 -- Gitee