diff --git a/.gitignore b/.gitignore index a3bd8591c73eb9cd5f488c3ee653ee88ad176667..3f4bcd029a3160ec5ec78279780e418d0c9ed7fe 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 dcfd372e74f15c6bfa0d02679a045e77c75e8c0c..a1cbf379654aacab9dfd11f63084d18f69c23d53 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 195c983bce1bd144d7e4c252dea43e540636e1d1..8ba98b16b48901857133f290d9eb58a82855b326 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 db5df9abab92f4568e6d24cbdf92c187c32d42c5..0c53fba3b3029ddacf2b2b5843d0c8744d6495af 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判断该用户为新老用户