修改异常抛出的提示
This commit is contained in:
parent
8fb1131729
commit
3e5a6ae000
@ -3,6 +3,7 @@ package cn.com.tenlion.service.loginappservice;
|
||||
import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO;
|
||||
import cn.com.tenlion.service.traininginstitutionuser.ITrainingInstitutionUserService;
|
||||
import ink.wgink.common.base.DefaultBaseService;
|
||||
import ink.wgink.exceptions.SearchException;
|
||||
import ink.wgink.interfaces.expand.login.ILoginAppHandlerService;
|
||||
import ink.wgink.pojo.bos.LoginAppUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -28,7 +29,7 @@ public class LoginAppServiceImpl extends DefaultBaseService implements ILoginApp
|
||||
InstitutionDTO orgInfo = orgUserService.getByUserId(loginAppUser.getUserId());
|
||||
if(orgInfo.getInstitutionId() != null
|
||||
&& !"".equals(orgInfo.getInstitutionId())){
|
||||
throw new Exception("机构用户请在首页选择机构登录进行登录");
|
||||
throw new SearchException("机构用户请在首页选择机构登录进行登录");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user