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
cda66980
Commit
cda66980
authored
May 26, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加功能:费用单增加费用大类
parent
ebf8776e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+3
-2
CostDetailServiceImpl.java
...other/module/cost/service/impl/CostDetailServiceImpl.java
+1
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
cda66980
package
com
.
blt
.
other
.
module
.
cost
.
service
.
impl
;
import
com.bailuntec.common.StringUtils
;
import
com.bailuntec.cost.api.dto.*
;
import
com.bailuntec.cost.api.request.ManageCostListReq
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -200,7 +201,7 @@ public class CostApiServiceImpl implements CostApiService {
}
costDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
costTypeDomain
.
getCategoryName
(
));
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setAccountingSubjectId
(
costTypeDomain
.
getAccountingSubjectId
());
costDomain
.
setAccountingSubjectNo
(
costTypeDomain
.
getAccountingSubjectNo
());
costDomain
.
setNsAccountingSubjectId
(
costTypeDomain
.
getNsAccountingSubjectId
());
...
...
@@ -252,7 +253,7 @@ public class CostApiServiceImpl implements CostApiService {
}
costDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
costTypeDomain
.
getCategoryName
(
));
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setAccountingSubjectId
(
costTypeDomain
.
getAccountingSubjectId
());
costDomain
.
setAccountingSubjectNo
(
costTypeDomain
.
getAccountingSubjectNo
());
costDomain
.
setNsAccountingSubjectId
(
costTypeDomain
.
getNsAccountingSubjectId
());
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostDetailServiceImpl.java
View file @
cda66980
...
...
@@ -99,7 +99,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
costDetailDomain
.
setTypeId
(
costTypeDomain
.
getId
());
costDetailDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costDetailDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDetailDomain
.
setCategoryName
(
costTypeDomain
.
getCategoryName
(
));
costDetailDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDetailDomain
.
getProject
())
&&
!
costDetailDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDetailDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
costDetailDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
cda66980
...
...
@@ -185,7 +185,7 @@ public abstract class AbstractCostService implements CostService {
if
(
accountingSubject
!=
null
)
{
costDomain
.
setTypeNo
(
costDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
costTypeDomain
.
getCategoryName
(
));
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
costDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
}
...
...
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