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
596fa692
Commit
596fa692
authored
Jan 15, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 费用系统 管理成本
parent
0f44b3c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
CostTypeAddReq.java
...com/blt/other/module/cost/dto/request/CostTypeAddReq.java
+3
-0
CostTypeModifyReq.java
.../blt/other/module/cost/dto/request/CostTypeModifyReq.java
+2
-0
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+4
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeAddReq.java
View file @
596fa692
...
...
@@ -27,4 +27,7 @@ public class CostTypeAddReq {
@ApiModelProperty
(
"1-费用类型 2-收入类型"
)
private
Integer
type
;
@ApiModelProperty
(
"是否管理成本"
)
private
Boolean
isMangeCost
;
}
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeModifyReq.java
View file @
596fa692
...
...
@@ -29,5 +29,7 @@ public class CostTypeModifyReq {
private
Integer
currentUserId
;
@ApiModelProperty
(
"是否管理成本"
)
private
Boolean
isMangeCost
;
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
596fa692
...
...
@@ -47,6 +47,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain
.
setTypeName
(
req
.
getTypeName
());
costTypeDomain
.
setDescription
(
req
.
getDescription
());
costTypeDomain
.
setIsManageCost
(
req
.
getIsMangeCost
());
costTypeDomain
.
setCostTemplateType
(
this
.
getCostTemplateType
(
req
.
getType
()));
this
.
save
(
costTypeDomain
);
...
...
@@ -86,6 +88,8 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
costTypeDomain
.
setAccountingSubjectNo
(
req
.
getAccountingSubjectNo
());
costTypeDomain
.
setIsManageCost
(
req
.
getIsMangeCost
());
log
.
info
(
"{} 更新会计一级科目"
,
oaUser
.
getUserName
());
this
.
updateById
(
costTypeDomain
);
...
...
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