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
692a3787
Commit
692a3787
authored
Nov 24, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
d62f5567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
CostTemplate.java
...in/java/com/blt/other/module/cost/model/CostTemplate.java
+13
-12
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/model/CostTemplate.java
View file @
692a3787
...
@@ -84,38 +84,39 @@ public class CostTemplate implements Serializable {
...
@@ -84,38 +84,39 @@ public class CostTemplate implements Serializable {
public
boolean
shouldDepartmentAutoCheck
(
CostDomain
cost
)
{
public
boolean
shouldDepartmentAutoCheck
(
CostDomain
cost
)
{
return
enableAutoReview
&&
enableDepartmentReview
&&
!
isDefault
&&
return
enableAutoReview
&&
enableDepartmentReview
&&
!
isDefault
// !cost.getCompanyName().contains("工会")
//
&&
!cost.getCompanyName().contains("工会")
;
;
}
}
public
boolean
shouldFinancialAutoCheck
(
CostDomain
cost
)
{
public
boolean
shouldFinancialAutoCheck
(
CostDomain
cost
)
{
return
enableAutoReview
&&
enableFinancialAutoReview
&&
!
isDefault
&&
return
enableAutoReview
&&
enableFinancialAutoReview
&&
!
isDefault
// !cost.getCompanyName().contains("工会")
//
&&
!cost.getCompanyName().contains("工会")
;
;
}
}
public
boolean
shouldFinalAutoCheck
(
CostDomain
cost
)
{
public
boolean
shouldFinalAutoCheck
(
CostDomain
cost
)
{
return
enableAutoReview
&&
enableFinalReview
&&
!
isDefault
&&
return
enableAutoReview
&&
enableFinalReview
&&
!
isDefault
// !cost.getCompanyName().contains("工会")
//
&&
!cost.getCompanyName().contains("工会")
;
;
}
}
public
boolean
shouldFinalCheck
(
CostDomain
cost
)
{
public
boolean
shouldFinalCheck
(
CostDomain
cost
)
{
BigDecimal
amount
=
cost
.
getAmount
();
BigDecimal
amount
=
cost
.
getAmount
Rmb
();
return
!(
finalMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
return
!(
finalMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
amount
.
compareTo
(
finalMinimumReviewAmount
)
<=
0
&&
amount
.
compareTo
(
finalMinimumReviewAmount
)
<=
0
// !cost.getCompanyName().contains("工会"))
// && !cost.getCompanyName().contains("工会")
)
;
;
}
}
public
boolean
shouldDepartmentCheck
(
CostDomain
cost
,
BigDecimal
departmentMinimumReviewAmount
)
{
public
boolean
shouldDepartmentCheck
(
CostDomain
cost
,
BigDecimal
departmentMinimumReviewAmount
)
{
BigDecimal
amount
=
cost
.
getAmount
();
BigDecimal
amount
=
cost
.
getAmount
Rmb
();
return
!(
departmentMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
return
!(
departmentMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
amount
.
compareTo
(
departmentMinimumReviewAmount
)
<=
0
&&
amount
.
compareTo
(
departmentMinimumReviewAmount
)
<=
0
// !cost.getCompanyName().contains("工会")
//
&&
!cost.getCompanyName().contains("工会")
);
);
}
}
...
...
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