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
08525780
Commit
08525780
authored
May 24, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加功能:费用类别增加费用大类
parent
cd9e3f7f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
7 deletions
+21
-7
CostTypeDomain.java
...ain/java/com/blt/other/database/model/CostTypeDomain.java
+2
-0
CostTypeAddReq.java
...com/blt/other/module/cost/dto/request/CostTypeAddReq.java
+2
-0
CostTypeModifyReq.java
.../blt/other/module/cost/dto/request/CostTypeModifyReq.java
+3
-0
CostTypeResult.java
...om/blt/other/module/cost/dto/response/CostTypeResult.java
+2
-1
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+4
-2
CostTypeMapper.xml
cost-service/src/main/resources/mapper/CostTypeMapper.xml
+8
-4
No files found.
cost-service/src/main/java/com/blt/other/database/model/CostTypeDomain.java
View file @
08525780
...
...
@@ -78,5 +78,7 @@ public class CostTypeDomain {
@TableField
(
value
=
"ns_accounting_subject_id"
)
private
Integer
nsAccountingSubjectId
;
@ApiModelProperty
(
"类别"
)
private
String
categoryName
;
}
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeAddReq.java
View file @
08525780
...
...
@@ -33,4 +33,6 @@ public class CostTypeAddReq {
@ApiModelProperty
(
value
=
"ns会计科目Id"
)
private
Integer
nsAccountingSubjectId
;
@ApiModelProperty
(
"类别"
)
private
String
categoryName
;
}
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeModifyReq.java
View file @
08525780
...
...
@@ -34,4 +34,7 @@ public class CostTypeModifyReq {
@ApiModelProperty
(
value
=
"ns会计科目Id"
)
private
Integer
nsAccountingSubjectId
;
@ApiModelProperty
(
"类别"
)
private
String
categoryName
;
}
cost-service/src/main/java/com/blt/other/module/cost/dto/response/CostTypeResult.java
View file @
08525780
...
...
@@ -62,5 +62,6 @@ public class CostTypeResult {
private
Integer
nsAccountingSubjectId
;
@ApiModelProperty
(
"类别"
)
private
String
categoryName
;
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
08525780
...
...
@@ -67,6 +67,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain
.
setIsManageCost
(
req
.
getIsManageCost
());
costTypeDomain
.
setCostTemplateType
(
this
.
getCostTemplateType
(
req
.
getType
()));
costTypeDomain
.
setCategoryName
(
req
.
getCategoryName
());
this
.
save
(
costTypeDomain
);
...
...
@@ -81,7 +82,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
lendCostTypeDomain
.
setTypeName
(
req
.
getTypeName
());
lendCostTypeDomain
.
setDescription
(
req
.
getDescription
());
lendCostTypeDomain
.
setAccountingSubjectId
(
lendAccountingSubject
.
getId
());
lendCostTypeDomain
.
setCategoryName
(
req
.
getCategoryName
());
this
.
save
(
lendCostTypeDomain
);
}
}
...
...
@@ -105,7 +106,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
lendCostTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
lendCostTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
lendCostTypeDomain
.
setIsManageCost
(
req
.
getIsManageCost
());
lendCostTypeDomain
.
setCategoryName
(
req
.
getCategoryName
());
this
.
updateById
(
lendCostTypeDomain
);
}
...
...
@@ -116,6 +117,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
costTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
costTypeDomain
.
setNsAccountingSubjectId
(
req
.
getNsAccountingSubjectId
());
costTypeDomain
.
setCategoryName
(
req
.
getCategoryName
());
if
(
req
.
getAccountingSubjectId
()
!=
null
)
{
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectById
(
req
.
getAccountingSubjectId
());
...
...
cost-service/src/main/resources/mapper/CostTypeMapper.xml
View file @
08525780
...
...
@@ -25,7 +25,8 @@
t1.create_user_id,
t1.create_user,
t1.is_manage_cost,
t1.ns_accounting_subject_id
t1.ns_accounting_subject_id,
t1.category_name
from cost_type t1
left join accounting_subject t2 on t1.accounting_subject_id = t2.id
where t1.cost_template_type =#{req.costTemplateType}
...
...
@@ -57,7 +58,8 @@
t1.create_user_id,
t1.create_user,
t1.is_manage_cost,
t1.ns_accounting_subject_id
t1.ns_accounting_subject_id,
t1.category_name
from cost_type t1
left join accounting_subject t2 on t1.accounting_subject_no = t2.subject_no
where t1.id = #{id}
...
...
@@ -75,7 +77,8 @@
t1.last_update_time,
t1.create_user_id,
t1.create_user,
t1.is_manage_cost
t1.is_manage_cost,
t1.category_name
from cost_type t1
left join accounting_subject t2 on t1.accounting_subject_no = t2.subject_no
where t1.type_no = #{typeNo}
...
...
@@ -94,7 +97,8 @@
t1.last_update_time,
t1.create_user_id,
t1.create_user,
t1.is_manage_cost
t1.is_manage_cost,
t1.category_name
from cost_type t1
left join accounting_subject t2 on t1.accounting_subject_no = t2.subject_no
where t1.type_name = #{typeName}
...
...
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