修改异常抛出的提示

This commit is contained in:
wans 2021-07-07 15:48:46 +08:00
parent 8fb1131729
commit 3e5a6ae000

View File

@ -3,6 +3,7 @@ package cn.com.tenlion.service.loginappservice;
import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO; import cn.com.tenlion.institutionmanagement.pojo.dtos.institution.InstitutionDTO;
import cn.com.tenlion.service.traininginstitutionuser.ITrainingInstitutionUserService; import cn.com.tenlion.service.traininginstitutionuser.ITrainingInstitutionUserService;
import ink.wgink.common.base.DefaultBaseService; import ink.wgink.common.base.DefaultBaseService;
import ink.wgink.exceptions.SearchException;
import ink.wgink.interfaces.expand.login.ILoginAppHandlerService; import ink.wgink.interfaces.expand.login.ILoginAppHandlerService;
import ink.wgink.pojo.bos.LoginAppUser; import ink.wgink.pojo.bos.LoginAppUser;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -28,7 +29,7 @@ public class LoginAppServiceImpl extends DefaultBaseService implements ILoginApp
InstitutionDTO orgInfo = orgUserService.getByUserId(loginAppUser.getUserId()); InstitutionDTO orgInfo = orgUserService.getByUserId(loginAppUser.getUserId());
if(orgInfo.getInstitutionId() != null if(orgInfo.getInstitutionId() != null
&& !"".equals(orgInfo.getInstitutionId())){ && !"".equals(orgInfo.getInstitutionId())){
throw new Exception("机构用户请在首页选择机构登录进行登录"); throw new SearchException("机构用户请在首页选择机构登录进行登录");
} }
} }
} }