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
67529bbf
Commit
67529bbf
authored
Mar 12, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
69214cfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+13
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
67529bbf
...
...
@@ -29,6 +29,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -280,6 +281,18 @@ public class CostController {
costService
=
CostServiceFactory
.
getCostService
(
costNo
);
costService
.
setStatus
(
costNo
,
5
);
//释放已申请的金额
CostDomain
costDomain
=
costService
.
getCostByCostNo
(
costNo
);
if
(
costDomain
.
getCostForm
().
equals
(
3
)
&&
costDomain
.
getIsLend
().
equals
(
2
))
{
CostDomain
supCost
=
costService
.
getCostByCostNo
(
costDomain
.
getSupCostNo
());
supCost
.
setRepaymentAppliedAmount
(
supCost
.
getRepaymentAppliedAmount
().
subtract
(
costDomain
.
getAmount
()));
supCost
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
supCost
);
}
costLogService
.
save
(
costNo
,
costService
.
getCostByCostNo
(
costNo
).
getCreateUserid
(),
"作废费用单"
);
return
CostResult
.
success
();
}
...
...
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