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
1ae2dd69
Commit
1ae2dd69
authored
Sep 17, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:获取用户信息接口修改
parent
e917b55c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+10
-15
No files found.
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 @
1ae2dd69
...
...
@@ -1192,24 +1192,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
// 业主单位
List
<
UserDto
>
list
=
orgUsrMapper
.
getUserInfo
(
userId
,
typeArr
[
0
],
null
,
FIELD_CODE
);
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
throw
new
RuntimeException
(
"人员绑定单位重复!"
);
}
else
{
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
if
(
list
.
size
()
==
1
)
{
userDtoList
.
addAll
(
list
);
UserDto
userDto
=
list
.
get
(
0
);
String
codeVal
=
userDto
.
getCompanyId
().
substring
(
0
,
5
);
if
(
StringUtils
.
isNotBlank
(
codeVal
))
{
List
<
UserDto
>
dtoList
=
orgUsrMapper
.
getUserInfo
(
null
,
typeArr
[
1
],
codeVal
,
COMPANY_FIELD_CODE
);
if
(!
CollectionUtils
.
isEmpty
(
dtoList
))
{
userDtoList
.
addAll
(
dtoList
);
return
userDtoList
;
}
if
(
list
.
size
()
==
1
)
{
userDtoList
.
addAll
(
list
);
UserDto
userDto
=
list
.
get
(
0
);
String
codeVal
=
userDto
.
getBizOrgCode
().
substring
(
0
,
5
);
if
(
StringUtils
.
isNotBlank
(
codeVal
))
{
List
<
UserDto
>
dtoList
=
orgUsrMapper
.
getUserInfo
(
null
,
typeArr
[
1
],
codeVal
,
COMPANY_FIELD_CODE
);
if
(!
CollectionUtils
.
isEmpty
(
dtoList
))
{
userDtoList
.
addAll
(
dtoList
);
}
throw
new
RuntimeException
(
"未获取人员业主单位!"
);
}
throw
new
RuntimeException
(
"人员绑定业主单位不唯一!"
)
;
return
userDtoList
;
}
throw
new
RuntimeException
(
"人员绑定业主单位不唯一!"
);
}
throw
new
RuntimeException
(
"人员未绑定任何单位!"
);
}
...
...
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