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
e6c8a495
Commit
e6c8a495
authored
Jan 04, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3ff93198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
SessionUtils.java
...src/main/java/com/blt/other/common/util/SessionUtils.java
+4
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+3
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/common/util/SessionUtils.java
View file @
e6c8a495
...
@@ -3,6 +3,8 @@ package com.blt.other.common.util;
...
@@ -3,6 +3,8 @@ package com.blt.other.common.util;
import
com.blt.other.common.base.SysUser
;
import
com.blt.other.common.base.SysUser
;
import
java.util.Optional
;
/**
/**
* 应用会话管理工具类
* 应用会话管理工具类
*/
*/
...
@@ -27,7 +29,8 @@ public class SessionUtils {
...
@@ -27,7 +29,8 @@ public class SessionUtils {
public
static
Integer
getCurrentUserId
()
{
public
static
Integer
getCurrentUserId
()
{
return
sysUserThreadLocal
.
get
().
getOaUserId
();
return
Optional
.
ofNullable
(
sysUserThreadLocal
.
get
()).
map
(
SysUser:
:
getOaUserId
).
orElse
(
null
);
}
}
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
e6c8a495
...
@@ -151,6 +151,9 @@ public abstract class AbstractCostService implements CostService {
...
@@ -151,6 +151,9 @@ public abstract class AbstractCostService implements CostService {
costDomain
.
setCostTemplate
(
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
()));
costDomain
.
setCostTemplate
(
costTemplateService
.
queryDetail
(
costDomain
.
getCostTemplateId
()));
Integer
currentUserId
=
SessionUtils
.
getCurrentUserId
();
Integer
currentUserId
=
SessionUtils
.
getCurrentUserId
();
if
(
currentUserId
==
null
)
{
currentUserId
=
costDomain
.
getCreateUserid
();
}
costDomain
.
setCanAudit
(
costCurrentReviewerService
.
canAudit
(
currentUserId
,
costNo
));
costDomain
.
setCanAudit
(
costCurrentReviewerService
.
canAudit
(
currentUserId
,
costNo
));
return
costDomain
;
return
costDomain
;
...
...
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