From 3e5a6ae000c3507bafc6b4fd9e72b6e86e26449c Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 7 Jul 2021 15:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tenlion/service/loginappservice/LoginAppServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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("机构用户请在首页选择机构登录进行登录"); } } }