@ -129,11 +129,23 @@ public interface UserInfoMapper {
UserInfologins(UserInfouserInfo);
//登陆
@Select("SELECT token,userId,userName,roleId,userAvatars,password from hr_user_info where isdel=0 and (account = #{account} or phone = #{account}) and password = #{password}")
@Select({"<script> "+
"SELECT token,userId,userName,roleId,userAvatars,password from hr_user_info where isdel=0"+
@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} or hui.phone = #{account}) and password = #{password} ")
@Select({"<script> "+
"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 "+
@Select("SELECT disableAccount FROM hr_user_info u LEFT JOIN student s ON u.userId = s.userId WHERE s.schoolId = #{schoolId} AND (account = #{account} OR phone = #{account}) AND u.isdel = 0 AND s.isdel = 0")
@Select({"<script> "+
"SELECT disableAccount FROM hr_user_info u LEFT JOIN student s ON u.userId = s.userId "+
"WHERE s.schoolId = #{schoolId} "+
"<if test='account!=null'> AND account = #{account} </if> "+
"<if test='phone!=null'> AND phone = #{phone} </if>"+
"<if test='email!=null'> AND email = #{email} </if>"+
"AND u.isdel = 0 AND s.isdel = 0"+
"</script>"})
IntegerqueryDisableAccount(UserInfouserInfo);
@Select("select roleId from hr_user_info where userId = #{userId}")