学生端登录时密码验证大小写

master
jiakun.lin 4 years ago
parent 9b60a9f544
commit cc45c3bece
  1. 2
      src/main/java/com/yipin/liuwanr/mapper/UserInfoMapper.java
  2. 4
      src/main/java/com/yipin/liuwanr/service/UserInfoService.java

@ -133,7 +133,7 @@ public interface UserInfoMapper {
UserInfo adminLogins(UserInfo userInfo);
//登陆账号密码
@Select("SELECT hui.schoolId,hui.account,hui.cityId,hui.countries,hui.creationTime,hui.dateBirth,hui.documentType,hui.educationDegree,hui.email,hui.iDNumber,hui.logInNumber,hui.phone,hui.provinceId,hui.sex,hui.uniqueIdentificationAccount,hui.userAvatars,hui.userId,hui.userName,hui.weChatID from hr_user_info hui where hui.isdel=0 and hui.account = #{account} and password = #{password} ")
@Select("SELECT hui.schoolId,hui.account,hui.cityId,hui.countries,hui.creationTime,hui.dateBirth,hui.documentType,hui.educationDegree,hui.email,hui.iDNumber,hui.logInNumber,hui.phone,hui.provinceId,hui.sex,hui.uniqueIdentificationAccount,hui.userAvatars,hui.userId,hui.userName,hui.weChatID,hui.password from hr_user_info hui where hui.isdel=0 and hui.account = #{account} and password = #{password} ")
UserInfo loginsAP(UserInfo userInfo);
//查询用户角色

@ -403,8 +403,8 @@ public class UserInfoService {
}else if (state==0){
try {
UserInfo user=userInfoMapper.loginsAP(userInfo);
// obj.put("user",user);
if(user!=null) {
boolean num = user.getPassword().equals(userInfo.getPassword());
if(user!=null && num == true) {
Integer userId = user.getUserId();
List<UserInfo> staffList = userInfoMapper.loginsGetStaffSchoolInfo(userId,schoolId);

Loading…
Cancel
Save