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
4128bf4b
Commit
4128bf4b
authored
Feb 22, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:工厂的收款单不走工厂审核流程
parent
b2c53392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FinancialCheckState.java
...dule/cost/service/impl/costcheck/FinancialCheckState.java
+4
-4
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/FinancialCheckState.java
View file @
4128bf4b
...
...
@@ -97,7 +97,7 @@ public class FinancialCheckState extends CostState {
if
(
costTemplate
.
shouldFinancialAutoCheck
(
costDomain
))
{
//自动审核通过
if
(
this
.
autoCheck
(
costDomain
))
{
costDomain
.
setCostStatus
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
?
CostDomain
.
STATUS_FACTORY_CHECK
:
CostDomain
.
STATUS_FINAL_CHECK
);
costDomain
.
setCostStatus
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
&&
!
costDomain
.
getCostForm
().
equals
(
2
)
?
CostDomain
.
STATUS_FACTORY_CHECK
:
CostDomain
.
STATUS_FINAL_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
...
...
@@ -105,7 +105,7 @@ public class FinancialCheckState extends CostState {
costLogService
.
saveByManage
(
costDomain
.
getCostNo
(),
"财务自动审核通过,当前审核人:"
+
costCurrentReviewerList
.
stream
().
map
(
CostCurrentReviewer:
:
getUsername
)
.
collect
(
Collectors
.
joining
(
","
)),
CostLogDomain
.
DEPARTMENT_AUTO_PASS
);
//流转状态
nextState
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
?
factoryCheckState
:
finalCheckState
);
nextState
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
&&
!
costDomain
.
getCostForm
().
equals
(
2
)
?
factoryCheckState
:
finalCheckState
);
//发布到总线尝试下个环节的自动审核
costSubscribe
.
subscribe
(
costContext
);
return
;
...
...
@@ -123,7 +123,7 @@ public class FinancialCheckState extends CostState {
.
costNo
(
costDomain
.
getCostNo
())
.
isPassed
(
true
)
.
build
();
costDomain
.
setCostStatus
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
?
CostDomain
.
STATUS_FACTORY_CHECK
:
CostDomain
.
STATUS_FINAL_CHECK
);
costDomain
.
setCostStatus
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
&&
!
costDomain
.
getCostForm
().
equals
(
2
)
?
CostDomain
.
STATUS_FACTORY_CHECK
:
CostDomain
.
STATUS_FINAL_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
costDomain
);
...
...
@@ -131,7 +131,7 @@ public class FinancialCheckState extends CostState {
sendWxMsg
(
costDomain
,
currentUserId
);
approvalHistoryService
.
save
(
approvalHistoryDomain
);
//流转状态
nextState
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
?
factoryCheckState
:
finalCheckState
);
nextState
(
super
.
isFactory
(
costDomain
.
getCompanyNo
())
&&
!
costDomain
.
getCostForm
().
equals
(
2
)
?
factoryCheckState
:
finalCheckState
);
//发布到总线尝试下个环节的自动审核
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