Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
9282c77d
Commit
9282c77d
authored
Jan 10, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.删除错误盘空
parent
24f84e91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
28 deletions
+26
-28
PersonIdentifyAspect.java
...odule/common/api/core/framework/PersonIdentifyAspect.java
+9
-13
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+17
-15
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/core/framework/PersonIdentifyAspect.java
View file @
9282c77d
...
@@ -39,19 +39,15 @@ public class PersonIdentifyAspect {
...
@@ -39,19 +39,15 @@ public class PersonIdentifyAspect {
if
(
permission
.
isNeedIdentity
()
&&
reginParam
!=
null
)
{
if
(
permission
.
isNeedIdentity
()
&&
reginParam
!=
null
)
{
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
UserDto
userDto
=
orgUsrService
.
getUserParentInfo
(
userId
);
UserDto
userDto
=
orgUsrService
.
getUserParentInfo
(
userId
);
if
(!
ObjectUtils
.
isEmpty
(
userDto
))
{
ReginParams
.
PersonIdentity
personIdentity
=
new
ReginParams
.
PersonIdentity
();
ReginParams
.
PersonIdentity
personIdentity
=
new
ReginParams
.
PersonIdentity
();
personIdentity
.
setBizOrgCode
(
userDto
.
getBizOrgCode
());
personIdentity
.
setBizOrgCode
(
userDto
.
getBizOrgCode
());
personIdentity
.
setCompanyId
(
userDto
.
getCompanyId
());
personIdentity
.
setCompanyId
(
userDto
.
getCompanyId
());
personIdentity
.
setCompanyName
(
userDto
.
getCompanyName
());
personIdentity
.
setCompanyName
(
userDto
.
getCompanyName
());
personIdentity
.
setPersonSeq
(
userDto
.
getPersonSeq
());
personIdentity
.
setPersonSeq
(
userDto
.
getPersonSeq
());
personIdentity
.
setPersonName
(
userDto
.
getPersonName
());
personIdentity
.
setPersonName
(
userDto
.
getPersonName
());
personIdentity
.
setIdentityType
(
userDto
.
getIdentityType
());
personIdentity
.
setIdentityType
(
userDto
.
getIdentityType
());
reginParam
.
setPersonIdentity
(
personIdentity
);
reginParam
.
setPersonIdentity
(
personIdentity
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
else
{
throw
new
RuntimeException
(
"人员未绑定!"
);
}
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
9282c77d
...
@@ -2049,23 +2049,25 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -2049,23 +2049,25 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
@Override
public
UserDto
getUserParentInfo
(
String
userId
)
{
public
UserDto
getUserParentInfo
(
String
userId
)
{
UserDto
userDto
=
new
UserDto
(
);
OrgUsr
orgUsr
=
orgUsrMapper
.
queryByUserId
(
Long
.
parseLong
(
userId
)
);
if
(
StringUtils
.
isNotEmpty
(
userId
)
)
{
if
(
null
!=
orgUsr
)
{
OrgUsr
orgUsr
=
orgUsrMapper
.
queryByUserId
(
Long
.
parseLong
(
userId
)
);
UserDto
userDto
=
new
UserDto
(
);
if
(!
ObjectUtils
.
isEmpty
(
orgUsr
))
{
String
parentId
=
orgUsr
.
getParentId
();
String
parentId
=
orgUsr
.
getParentId
(
);
userDto
.
setPersonSeq
(
String
.
valueOf
(
orgUsr
.
getSequenceNbr
())
);
userDto
.
setPersonSeq
(
String
.
valueOf
(
orgUsr
.
getSequenceNbr
()
));
userDto
.
setPersonName
(
orgUsr
.
getBizOrgName
(
));
userDto
.
setPersonName
(
orgUsr
.
getBizOrgName
()
);
OrgUsr
bizOrg
=
orgUsrMapper
.
queryBySequenceNbr
(
parentId
);
OrgUsr
bizOrg
=
orgUsrMapper
.
queryBySequenceNbr
(
parentId
);
if
(!
ObjectUtils
.
isEmpty
(
bizOrg
))
{
if
(!
ObjectUtils
.
isEmpty
(
bizOrg
))
{
userDto
.
setBizOrgType
(
bizOrg
.
getBizOrgType
());
userDto
.
setBizOrgType
(
bizOrg
.
getBizOrgTyp
e
());
userDto
.
setBizOrgCode
(
bizOrg
.
getBizOrgCod
e
());
userDto
.
setBizOrgCode
(
bizOrg
.
getBizOrgCode
(
));
userDto
.
setCompanyId
(
String
.
valueOf
(
bizOrg
.
getSequenceNbr
()
));
userDto
.
setCompanyId
(
String
.
valueOf
(
bizOrg
.
getSequenceNbr
()
));
userDto
.
setCompanyName
(
bizOrg
.
getBizOrgName
(
));
userDto
.
setCompanyName
(
bizOrg
.
getBizOrgName
());
}
else
{
}
throw
new
RuntimeException
(
"人员所在公司不存在"
);
}
}
return
userDto
;
}
else
{
throw
new
RuntimeException
(
"人员未绑定"
);
}
}
return
userDto
;
}
}
...
...
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