Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
Overview
Overview
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
bltdc
dc-cost-system
Commits
550e0566
Commit
550e0566
authored
Jan 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a82fbfed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
MvcInterceptorConfig.java
...om/blt/other/common/interceptor/MvcInterceptorConfig.java
+2
-4
DepartmentCheckState.java
...ule/cost/service/impl/costcheck/DepartmentCheckState.java
+14
-2
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/common/interceptor/MvcInterceptorConfig.java
View file @
550e0566
...
...
@@ -23,10 +23,7 @@ public class MvcInterceptorConfig extends WebMvcConfigurationSupport {
protected
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
sessionHandlerInterceptor
)
.
excludePathPatterns
();
// registry.addInterceptor(sessionHandlerInterceptor);
super
.
addInterceptors
(
registry
);
}
...
...
@@ -43,6 +40,7 @@ public class MvcInterceptorConfig extends WebMvcConfigurationSupport {
registry
.
addResourceHandler
(
"/doc.html"
)
.
addResourceLocations
(
"classpath:/META-INF/resources/"
);
registry
.
addResourceHandler
(
"/webjars/**"
)
.
addResourceLocations
(
"classpath:/META-INF/resources/webjars/"
);
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costcheck/DepartmentCheckState.java
View file @
550e0566
...
...
@@ -158,15 +158,27 @@ public class DepartmentCheckState extends CostState {
}
private
DepartmentReviewer
getCurrentDepartmentReviewer
(
Integer
departmentId
)
{
Integer
primaryDepartmentId
;
Integer
secondDepartmentId
;
OaDepartment
oaDepartment
=
oaDepartmentMapper
.
selectByDepartmentId
(
departmentId
);
Integer
primaryDepartmentId
=
departmentId
;
if
(
oaDepartment
.
getParentId
()
>
0
)
{
OaDepartment
nextDepartment
=
oaDepartmentMapper
.
selectByDepartmentId
(
oaDepartment
.
getParentId
());
if
(
nextDepartment
.
getParentId
()
>
0
)
{
primaryDepartmentId
=
nextDepartment
.
getParentId
();
secondDepartmentId
=
nextDepartment
.
getDepartmentId
();
}
else
{
primaryDepartmentId
=
oaDepartment
.
getParentId
();
secondDepartmentId
=
oaDepartment
.
getDepartmentId
();
}
}
else
{
primaryDepartmentId
=
departmentId
;
secondDepartmentId
=
null
;
}
DepartmentReviewer
primaryDepartmentReviewer
=
departmentReviewerMapper
.
selectByPrimaryDepartmentId
(
primaryDepartmentId
);
DepartmentReviewer
secondDepartmentReviewer
=
departmentReviewerMapper
.
selectBySecondDepartmentId
(
d
epartmentId
);
DepartmentReviewer
secondDepartmentReviewer
=
departmentReviewerMapper
.
selectBySecondDepartmentId
(
secondD
epartmentId
);
if
(
secondDepartmentReviewer
!=
null
)
{
return
secondDepartmentReviewer
;
}
...
...
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