Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chuanshan_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
chuanshan_gov_platform
Commits
438ce87f
Commit
438ce87f
authored
Mar 07, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ec8f173b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/ApproverServiceImpl.java
...ls/xhx/module/apply/service/impl/ApproverServiceImpl.java
+13
-12
No files found.
single-matter/src/main/java/com/mortals/xhx/module/apply/service/impl/ApproverServiceImpl.java
View file @
438ce87f
...
@@ -86,17 +86,18 @@ public class ApproverServiceImpl extends AbstractCRUDServiceImpl<ApproverDao, Ap
...
@@ -86,17 +86,18 @@ public class ApproverServiceImpl extends AbstractCRUDServiceImpl<ApproverDao, Ap
@Override
@Override
public
String
getDeptCodeByUser
(
Long
userId
)
throws
AppException
{
public
String
getDeptCodeByUser
(
Long
userId
)
throws
AppException
{
UserEntity
userEntity
=
userService
.
get
(
userId
);
// UserEntity userEntity = userService.get(userId);
if
(
userEntity
==
null
){
// if(userEntity==null){
throw
new
AppException
(
"用户id不正确,找不到对应的用户信息"
);
// throw new AppException("用户id不正确,找不到对应的用户信息");
}
// }
ApproverEntity
approverEntity
=
this
.
selectOne
(
new
ApproverQuery
().
loginName
(
userEntity
.
getLoginName
()));
// ApproverEntity approverEntity = this.selectOne(new ApproverQuery().loginName(userEntity.getLoginName()));
if
(
approverEntity
==
null
){
// if(approverEntity==null){
throw
new
AppException
(
"该用户不是预审工作人员"
);
// throw new AppException("该用户不是预审工作人员");
}
// }
if
(
StringUtils
.
isEmpty
(
approverEntity
.
getDeptCode
())){
// if(StringUtils.isEmpty(approverEntity.getDeptCode())){
throw
new
AppException
(
"该工作人员没有配置管辖部门"
);
// throw new AppException("该工作人员没有配置管辖部门");
}
// }
return
approverEntity
.
getDeptCode
();
// return approverEntity.getDeptCode();
return
null
;
}
}
}
}
\ No newline at end of file
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