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
1bcd362b
Commit
1bcd362b
authored
May 08, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a8e5560e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CostTemplate.java
...in/java/com/blt/other/module/cost/model/CostTemplate.java
+1
-3
DepartmentCheckState.java
...ule/cost/service/impl/costcheck/DepartmentCheckState.java
+2
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/model/CostTemplate.java
View file @
1bcd362b
...
...
@@ -122,11 +122,9 @@ public class CostTemplate implements Serializable {
//括号里面的是代表不需要自动审核的,太拗口了
//部门设置的自动审核金额大于0 且 当前金额小于部门设置的自动审核金额,也就是不需要自动审核,加个 ! 就是需要自动审核的
//departmentMinimumReviewAmount.compareTo(BigDecimal.ZERO) > 0 && amount.compareTo(departmentMinimumReviewAmount) < 0
// cost.getCostForm() == 1 付款单
///
return
!(
departmentMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
amount
.
compareTo
(
departmentMinimumReviewAmount
)
<
0
&&
cost
.
getCostForm
()
==
1
);
amount
.
compareTo
(
departmentMinimumReviewAmount
)
<
0
);
}
public
boolean
shouldHrCheck
(
CostDomain
costDomain
)
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costcheck/DepartmentCheckState.java
View file @
1bcd362b
...
...
@@ -80,7 +80,8 @@ public class DepartmentCheckState extends CostState {
//如果不需要审核 直接通过
DepartmentReviewer
departmentReviewer
=
this
.
getCurrentDepartmentReviewer
(
oaDepartment
.
getDepartmentId
());
if
(!
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
departmentReviewer
.
getAutoReviewAmount
()))
{
//收款单也不需要审核
if
(
costDomain
.
getCostForm
()
==
2
||
(!
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
departmentReviewer
.
getAutoReviewAmount
())))
{
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_HR_CHECK
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
...
...
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