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
d97ba13e
Commit
d97ba13e
authored
Dec 01, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fa86da2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+11
-0
AbstractCostPlanService.java
...e/cost/service/impl/costplan/AbstractCostPlanService.java
+8
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
d97ba13e
...
...
@@ -342,6 +342,17 @@ public abstract class AbstractCostService implements CostService {
@Override
public
void
reject
(
String
costNo
)
{
if
(
costNo
.
startsWith
(
"S"
))
{
//费用计划
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costNo
);
//费用计划关联借支单
CostDomain
supCost
=
costDao
.
selectByCostNo
(
costDomain
.
getSupCostNo
());
supCost
.
setCompensate
(
supCost
.
getCompensate
().
subtract
(
costDomain
.
getAmount
()));
costDao
.
updateById
(
supCost
);
}
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costNo
);
costDomain
.
setCostStatus
(
CostDomain
.
STATUS_REJECT
);
costDao
.
updateById
(
costDomain
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/AbstractCostPlanService.java
View file @
d97ba13e
...
...
@@ -136,6 +136,14 @@ public abstract class AbstractCostPlanService implements CostPlanService {
@Override
public
void
deleted
(
String
costPlanNo
)
{
if
(
costPlanNo
.
startsWith
(
"S"
))
{
//费用计划
CostPlanDomain
costPlanDomain
=
costPlanDao
.
selectByNo
(
costPlanNo
);
//费用计划关联借支单
CostDomain
costDomain
=
costDao
.
selectByCostNo
(
costPlanDomain
.
getSupCostNo
());
costDomain
.
setCompensate
(
costDomain
.
getCompensate
().
subtract
(
costPlanDomain
.
getPlanAmount
()));
costDao
.
updateById
(
costDomain
);
}
costPlanDao
.
deleteByNo
(
costPlanNo
);
}
...
...
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