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
6b3c4163
Commit
6b3c4163
authored
Nov 17, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b4f96d9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
CostTemplate.java
...in/java/com/blt/other/module/cost/model/CostTemplate.java
+7
-6
DepartmentCheckState.java
...ule/cost/service/impl/costcheck/DepartmentCheckState.java
+1
-1
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/model/CostTemplate.java
View file @
6b3c4163
...
@@ -101,15 +101,16 @@ public class CostTemplate implements Serializable {
...
@@ -101,15 +101,16 @@ public class CostTemplate implements Serializable {
public
boolean
shouldFinalCheck
(
CostDomain
cost
)
{
public
boolean
shouldFinalCheck
(
CostDomain
cost
)
{
BigDecimal
amount
=
cost
.
getAmount
();
BigDecimal
amount
=
cost
.
getAmount
();
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
();
return
departmentMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
amount
.
compareTo
(
departmentMinimumReviewAmount
)
>=
0
&&
return
!(
departmentMinimumReviewAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
&&
!
cost
.
getCompanyName
().
contains
(
"工会"
);
amount
.
compareTo
(
departmentMinimumReviewAmount
)
<=
0
&&
!
cost
.
getCompanyName
().
contains
(
"工会"
));
}
}
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costcheck/DepartmentCheckState.java
View file @
6b3c4163
...
@@ -47,7 +47,7 @@ public class DepartmentCheckState extends CostState {
...
@@ -47,7 +47,7 @@ public class DepartmentCheckState extends CostState {
//如果不需要审核 直接通过
//如果不需要审核 直接通过
OaUser
oaUser
=
oaUserMapper
.
selectByOaUserId
(
costDomain
.
getCreateUserid
());
OaUser
oaUser
=
oaUserMapper
.
selectByOaUserId
(
costDomain
.
getCreateUserid
());
OaDepartment
oaDepartment
=
oaDepartmentMapper
.
selectByDepartmentId
(
oaUser
.
getPrimaryDepartmentId
());
OaDepartment
oaDepartment
=
oaDepartmentMapper
.
selectByDepartmentId
(
oaUser
.
getPrimaryDepartmentId
());
if
(
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
oaDepartment
.
getDepartmentMinimumReviewAmount
()))
{
if
(
!
costTemplate
.
shouldDepartmentCheck
(
costDomain
,
oaDepartment
.
getDepartmentMinimumReviewAmount
()))
{
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_FINANCIAL_CHECK
);
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_FINANCIAL_CHECK
);
costDao
.
updateById
(
costDomain
);
costDao
.
updateById
(
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