Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f78b115b
authored
Sep 05, 2023
by
李小龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
平台登录校验
parent
45260e49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
server-common/src/main/resources/locale/business_messages.properties
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
server-common/src/main/resources/locale/business_messages.properties
View file @
f78b115b
...
...
@@ -54,7 +54,7 @@ SYSTEM.ERROR.TMP.TOKEN.BLANK=验证码不匹配
SYSTEM.ERROR.TOKEN.BLANK.OR.NOT.EXIST
=
token失效或不存在
SYSTEM.ERROR.NO.PERMISSION
=
无权限访问
SYSTEM.ERROR.TENANT.ID.NOT.BLANK
=
厂别
id不能为空
SYSTEM.ERROR.TENANT.ID.NOT.BLANK
=
租户
id不能为空
SYSTEM.ERROR.TENANT.NOT.EXIST
=
该厂别不存在或者被禁用
SYSTEM.ERROR.DUPLICATE.REQUEST
=
请勿重复请求
...
...
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
View file @
f78b115b
...
...
@@ -30,6 +30,7 @@ import com.makeit.enums.CommonEnum;
import
com.makeit.enums.IsTenantAccountEnum
;
import
com.makeit.enums.biz.auth.SysEnum
;
import
com.makeit.exception.BusinessException
;
import
com.makeit.global.aspect.tenant.TenantIdIgnore
;
import
com.makeit.global.aspect.tenant.TenantIdUtil
;
import
com.makeit.mapper.platform.auth.PlatUserMapper
;
import
com.makeit.module.admin.dto.plat.PlatMenuDTOVO
;
...
...
@@ -130,7 +131,10 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getAccount
()),
PlatUser:
:
getAccount
,
dto
.
getAccount
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getUsername
()),
PlatUser:
:
getUsername
,
dto
.
getUsername
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getMobile
()),
PlatUser:
:
getMobile
,
dto
.
getMobile
())
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getStatus
()),
PlatUser:
:
getStatus
,
dto
.
getStatus
());
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getStatus
()),
PlatUser:
:
getStatus
,
dto
.
getStatus
())
.
eq
(
StringUtils
.
isNotBlank
(
dto
.
getTenantId
()),
PlatUser:
:
getTenantId
,
dto
.
getTenantId
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getOrgId
()),
PlatUser:
:
getOrgPath
,
dto
.
getOrgId
())
;
if
(
consumer
!=
null
)
{
consumer
.
accept
(
lambdaQueryWrapper
);
...
...
@@ -334,6 +338,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
}
@Override
@TenantIdIgnore
public
PlatUserLoginVO
login
(
LoginDTO
loginDTO
)
{
if
(
StringUtils
.
isBlank
(
loginDTO
.
getAccount
()))
{
throw
new
BusinessException
(
CodeMessageEnum
.
SYSTEM_ERROR
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment