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
a6028152
Commit
a6028152
authored
Jan 26, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
2717fe96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
CostTypeController.java
.../blt/other/module/cost/controller/CostTypeController.java
+0
-1
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+12
-8
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostTypeController.java
View file @
a6028152
...
...
@@ -54,7 +54,6 @@ public class CostTypeController {
return
CostResult
.
success
();
}
@ApiOperation
(
"添加费用类型"
)
@PostMapping
(
"/addCostType"
)
public
CostResult
<
Void
>
addCostType
(
@RequestBody
CostTypeAddReq
req
)
{
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
a6028152
...
...
@@ -94,14 +94,18 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
if
(
costTypeDomain
.
getCostTemplateType
().
equals
(
CostTypeDomain
.
feeType
))
{
CostTypeDomain
lendCostTypeDomain
=
baseMapper
.
selectByNameAndType
(
costTypeDomain
.
getTypeName
(),
CostTypeDomain
.
borrow
);
lendCostTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
lendCostTypeDomain
.
setDescription
(
req
.
getDescription
());
lendCostTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
lendCostTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
lendCostTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
lendCostTypeDomain
.
setIsManageCost
(
req
.
getIsManageCost
());
this
.
updateById
(
lendCostTypeDomain
);
if
(
lendCostTypeDomain
!=
null
)
{
lendCostTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
lendCostTypeDomain
.
setDescription
(
req
.
getDescription
());
lendCostTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
lendCostTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
lendCostTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
lendCostTypeDomain
.
setIsManageCost
(
req
.
getIsManageCost
());
this
.
updateById
(
lendCostTypeDomain
);
}
}
costTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
...
...
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