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
af59f1ed
Commit
af59f1ed
authored
Dec 02, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update bug fix
parent
175c1286
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
CostApi.java
...ost-api/src/main/java/com/bailuntec/cost/api/CostApi.java
+1
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+8
-0
No files found.
bailuntec-cost-api/src/main/java/com/bailuntec/cost/api/CostApi.java
View file @
af59f1ed
...
@@ -69,7 +69,7 @@ public interface CostApi {
...
@@ -69,7 +69,7 @@ public interface CostApi {
@ApiOperation
(
"获取费用系统列表"
)
@ApiOperation
(
"获取费用系统列表"
)
@GetMapping
({
"/getCostList"
})
@GetMapping
({
"/getCostList"
})
CostResult
<
List
<
CostDto
>>
getCostList
(
@RequestParam
(
name
=
"startDate"
)
String
startDate
,
CostResult
<
List
<
CostDto
>>
getCostList
(
@RequestParam
(
name
=
"startDate"
)
String
st
K
artDate
,
@RequestParam
(
name
=
"endDate"
)
String
endDate
,
@RequestParam
(
name
=
"endDate"
)
String
endDate
,
@RequestParam
(
name
=
"pageNum"
)
Integer
pageNum
,
@RequestParam
(
name
=
"pageNum"
)
Integer
pageNum
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
);
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
af59f1ed
...
@@ -248,6 +248,14 @@ public abstract class AbstractCostService implements CostService {
...
@@ -248,6 +248,14 @@ public abstract class AbstractCostService implements CostService {
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setCostStatus
(
i
);
costDomain
.
setCostStatus
(
i
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
if
(
costDomain
.
getCostStatus
().
equals
(
5
))
{
//释放已申请的金额
CostDomain
supCost
=
costDao
.
selectByCostNo
(
costDomain
.
getSupCostNo
());
supCost
.
setRepaymentAppliedAmount
(
supCost
.
getRepaymentAppliedAmount
().
subtract
(
costDomain
.
getAmount
()));
supCost
.
setLastModifyDate
(
LocalDateTime
.
now
());
costDao
.
updateById
(
supCost
);
}
return
costDao
.
update
(
costDomain
,
new
LambdaQueryWrapper
<
CostDomain
>()
return
costDao
.
update
(
costDomain
,
new
LambdaQueryWrapper
<
CostDomain
>()
.
eq
(
CostDomain:
:
getCostNo
,
costDomain
.
getCostNo
()));
.
eq
(
CostDomain:
:
getCostNo
,
costDomain
.
getCostNo
()));
}
}
...
...
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