no message

This commit is contained in:
DESKTOP-369JRHT\12997 2024-07-11 18:18:38 +08:00
parent fa1e15dde4
commit 47c4cf462b

View File

@ -233,7 +233,10 @@ public class BackendLoginController extends BaseController {
if (ObjectUtil.isEmpty(one.getOwnerId())) {
one.setOwnerId(-1); //设置为普通员工并进行跳转
}
response.setDutyRoleCode(roleById.getRoleCode());
if (ObjectUtils.isNotEmpty(roleById) && ObjectUtils.isNotEmpty(roleById.getRoleCode())) {
response.setDutyRoleCode(roleById.getRoleCode());
}
response.setOwnerId(one.getOwnerId().toString());
response.setTokenCreatedTime(new Date());
return getSuccessResult(response);