Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
d82cd28e
Commit
d82cd28e
authored
Aug 23, 2019
by
季圣华
Browse files
解决跨租户用户名重复的问题
parent
10243dae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/config/TenantConfig.java
View file @
d82cd28e
...
@@ -83,9 +83,9 @@ public class TenantConfig {
...
@@ -83,9 +83,9 @@ public class TenantConfig {
public
boolean
doFilter
(
MetaObject
metaObject
)
{
public
boolean
doFilter
(
MetaObject
metaObject
)
{
MappedStatement
ms
=
SqlParserHelper
.
getMappedStatement
(
metaObject
);
MappedStatement
ms
=
SqlParserHelper
.
getMappedStatement
(
metaObject
);
// 过滤自定义查询此时无租户信息约束出现
// 过滤自定义查询此时无租户信息约束出现
//
if ("com.jsh.erp.datasource.mappers.
DepotHead
MapperEx.get
BuildOnlyNumber
".equals(ms.getId())) {
if
(
"com.jsh.erp.datasource.mappers.
User
MapperEx.get
UserListByUserNameOrLoginName
"
.
equals
(
ms
.
getId
()))
{
//
return true;
return
true
;
//
}
}
return
false
;
return
false
;
}
}
});
});
...
...
src/main/java/com/jsh/erp/constants/ExceptionConstants.java
View file @
d82cd28e
...
@@ -60,10 +60,10 @@ public class ExceptionConstants {
...
@@ -60,10 +60,10 @@ public class ExceptionConstants {
public
static
final
String
USER_EDIT_FAILED_MSG
=
"修改用户信息失败"
;
public
static
final
String
USER_EDIT_FAILED_MSG
=
"修改用户信息失败"
;
//用户名已存在
//用户名已存在
public
static
final
int
USER_USER_NAME_ALREADY_EXISTS_CODE
=
500003
;
public
static
final
int
USER_USER_NAME_ALREADY_EXISTS_CODE
=
500003
;
public
static
final
String
USER_USER_NAME_ALREADY_EXISTS_MSG
=
"用户名已存在"
;
public
static
final
String
USER_USER_NAME_ALREADY_EXISTS_MSG
=
"用户名
在本系统
已存在"
;
//登录名已存在
//登录名已存在
public
static
final
int
USER_LOGIN_NAME_ALREADY_EXISTS_CODE
=
500003
;
public
static
final
int
USER_LOGIN_NAME_ALREADY_EXISTS_CODE
=
500003
;
public
static
final
String
USER_LOGIN_NAME_ALREADY_EXISTS_MSG
=
"登录名已存在"
;
public
static
final
String
USER_LOGIN_NAME_ALREADY_EXISTS_MSG
=
"登录名
在本系统
已存在"
;
//用户录入数量超出限制
//用户录入数量超出限制
public
static
final
int
USER_OVER_LIMIT_FAILED_CODE
=
500004
;
public
static
final
int
USER_OVER_LIMIT_FAILED_CODE
=
500004
;
public
static
final
String
USER_OVER_LIMIT_FAILED_MSG
=
"用户录入数量超出限制,请联系管理员续费"
;
public
static
final
String
USER_OVER_LIMIT_FAILED_MSG
=
"用户录入数量超出限制,请联系管理员续费"
;
...
...
Write
Preview
Supports
Markdown
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