|
|
@ -262,16 +262,16 @@ public interface UserInfoMapper { |
|
|
|
void updateUserAvatars(@Param("userAvatars") String userAvatars, @Param("userId") Integer userId); |
|
|
|
void updateUserAvatars(@Param("userAvatars") String userAvatars, @Param("userId") Integer userId); |
|
|
|
|
|
|
|
|
|
|
|
//更新用户登录次数和最后一次登录时间
|
|
|
|
//更新用户登录次数和最后一次登录时间
|
|
|
|
@Update({"UPDATE user SET logInNumber=logInNumber+1, lastTimeOfLanding=now() WHERE userId=#{userId}"}) |
|
|
|
@Update({"UPDATE hr_user_info SET logInNumber=logInNumber+1, lastLoginTime=now() WHERE userId=#{userId}"}) |
|
|
|
void updateLogInNumber(UserM user); |
|
|
|
void updateLogInNumber(UserInfo user); |
|
|
|
|
|
|
|
|
|
|
|
//更新学生登录次数和最后一次登录时间
|
|
|
|
//更新学生登录次数和最后一次登录时间
|
|
|
|
@Update({"UPDATE student SET logInNumber=logInNumber+1, lastLoginTime=now() WHERE phone=#{phone}"}) |
|
|
|
@Update({"UPDATE student SET logInNumber=logInNumber+1, lastLoginTime=now() WHERE userId=#{userId}"}) |
|
|
|
void updateStudentLogInNumber(UserM user); |
|
|
|
void updateStudentLogInNumber(UserInfo user); |
|
|
|
|
|
|
|
|
|
|
|
//更新员工登录次数和最后一次登录时间
|
|
|
|
//更新员工登录次数和最后一次登录时间
|
|
|
|
@Update({"UPDATE staff SET logNumber=logNumber+1, lastTimeOfLanding=now() WHERE phone=#{phone}"}) |
|
|
|
@Update({"UPDATE staff SET loginNumber=loginNumber+1, lastLoginTime=now() WHERE userId=#{userId}"}) |
|
|
|
void updateStaffLogInNumber(UserM user); |
|
|
|
void updateStaffLogInNumber(UserInfo user); |
|
|
|
|
|
|
|
|
|
|
|
//查询账号是否存在
|
|
|
|
//查询账号是否存在
|
|
|
|
@Select("SELECT account,email,userName,userId,uniqueIdentificationAccount,phone from hr_user_info where isdel = 0 and account = #{account}") |
|
|
|
@Select("SELECT account,email,userName,userId,uniqueIdentificationAccount,phone from hr_user_info where isdel = 0 and account = #{account}") |
|
|
@ -340,4 +340,7 @@ public interface UserInfoMapper { |
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT disableAccount FROM hr_user_info WHERE schoolId = #{schoolId} AND account = #{account} and isdel = 0") |
|
|
|
@Select("SELECT disableAccount FROM hr_user_info WHERE schoolId = #{schoolId} AND account = #{account} and isdel = 0") |
|
|
|
Integer queryDisableAccount(UserInfo userInfo); |
|
|
|
Integer queryDisableAccount(UserInfo userInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Select("select roleId from hr_user_info where userId = #{userId}") |
|
|
|
|
|
|
|
UserInfo queryUser(UserInfo user); |
|
|
|
} |
|
|
|
} |