Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
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
huluobin
bailuntec-cost
Commits
b2c53392
Commit
b2c53392
authored
Feb 11, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整需求:广州沃伟科技发展有限公司不由总经办审核
parent
468e3435
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
HrCheckState.java
...ther/module/cost/service/impl/costcheck/HrCheckState.java
+9
-7
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/HrCheckState.java
View file @
b2c53392
...
...
@@ -16,6 +16,7 @@ import com.blt.other.module.sys.model.CostReviewer;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Scope
;
import
org.springframework.stereotype.Component
;
import
org.thymeleaf.util.StringUtils
;
import
javax.annotation.Resource
;
import
java.time.LocalDateTime
;
...
...
@@ -33,8 +34,8 @@ import java.util.List;
@Scope
(
"prototype"
)
public
class
HrCheckState
extends
CostState
{
//
@Autowired
//
FinancialCheckState financialCheckState;
@Autowired
FinancialCheckState
financialCheckState
;
@Resource
GeneralManagerCheckState
generalManagerCheckState
;
@Resource
...
...
@@ -59,13 +60,13 @@ public class HrCheckState extends CostState {
//如果不需要审核 直接通过
if
(!
costTemplate
.
shouldHrCheck
(
costDomain
))
{
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_MANAGER_CHECK
);
//2022-02-11后"广州沃伟科技发展有限公司"不用总经办审核,直接转财务审核
costDomain
.
setCostStatus
(
StringUtils
.
equals
(
costDomain
.
getCompanyNo
(),
"COM2008121838151"
)
?
CostDomain
.
STATUS_FINANCIAL_CHECK
:
CostDomain
.
STATUS_MANAGER_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
//流转状态
nextState
(
generalManagerCheckState
);
nextState
(
StringUtils
.
equals
(
costDomain
.
getCompanyNo
(),
"COM2008121838151"
)
?
financialCheckState
:
generalManagerCheckState
);
costSubscribe
.
subscribe
(
costContext
);
return
;
...
...
@@ -82,13 +83,14 @@ public class HrCheckState extends CostState {
.
costNo
(
costDomain
.
getCostNo
())
.
isPassed
(
true
)
.
build
();
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_MANAGER_CHECK
);
//2022-02-11后"广州沃伟科技发展有限公司"不用总经办审核,直接转财务审核
costDomain
.
setCostStatus
(
StringUtils
.
equals
(
costDomain
.
getCompanyNo
(),
"COM2008121838151"
)
?
CostDomain
.
STATUS_FINANCIAL_CHECK
:
CostDomain
.
STATUS_MANAGER_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
costLogService
.
save
(
costDomain
.
getCostNo
(),
currentUserId
,
"行政审核通过"
,
CostLogDomain
.
HR_PASS
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
nextState
(
generalManagerCheckState
);
nextState
(
StringUtils
.
equals
(
costDomain
.
getCompanyNo
(),
"COM2008121838151"
)
?
financialCheckState:
generalManagerCheckState
);
//发布到总线尝试下个环节的自动审核
costSubscribe
.
subscribe
(
costContext
);
}
...
...
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