diff --git a/src/main/java/cn/com/tenlion/service/loginappservice/LoginAppServiceImpl.java b/src/main/java/cn/com/tenlion/service/loginappservice/LoginAppServiceImpl.java index fb69e7b..3436fce 100644 --- a/src/main/java/cn/com/tenlion/service/loginappservice/LoginAppServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/loginappservice/LoginAppServiceImpl.java @@ -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("机构用户请在首页选择机构登录进行登录"); } } }