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
266fb527
Commit
266fb527
authored
May 26, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加功能:费用单增加费用大类
parent
cda66980
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
10 deletions
+13
-10
CostApiServiceImpl.java
...lt/other/module/cost/service/impl/CostApiServiceImpl.java
+2
-2
CostDetailServiceImpl.java
...other/module/cost/service/impl/CostDetailServiceImpl.java
+1
-1
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+4
-1
CostPlanNewLend1ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
+1
-1
CostPlanNewLend2ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
+3
-3
CostPlanNewPayServiceImpl.java
...cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
+1
-1
CostPlanNewReceiptServiceImpl.java
.../service/impl/costplan/CostPlanNewReceiptServiceImpl.java
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostApiServiceImpl.java
View file @
266fb527
...
...
@@ -201,7 +201,7 @@ public class CostApiServiceImpl implements CostApiService {
}
costDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
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
());
...
...
@@ -253,7 +253,7 @@ public class CostApiServiceImpl implements CostApiService {
}
costDomain
.
setTypeNo
(
costTypeDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
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 @
266fb527
...
...
@@ -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
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDetailDomain
.
getProject
())
&&
!
costDetailDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
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 @
266fb527
...
...
@@ -185,7 +185,7 @@ public abstract class AbstractCostService implements CostService {
if
(
accountingSubject
!=
null
)
{
costDomain
.
setTypeNo
(
costDomain
.
getTypeNo
());
costDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())
?
costTypeDomain
.
getCategoryName
()
:
(
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
costDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
}
...
...
@@ -235,6 +235,9 @@ public abstract class AbstractCostService implements CostService {
costDomain
.
setCostType
(
costTypeDomain
);
costDomain
.
setLastModifyDate
(
LocalDateTime
.
now
());
if
(
StringUtils
.
isBlank
(
costTypeDomain
.
getCategoryName
()))
{
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDetailDomains
.
get
(
0
).
getProject
())
&&
costDetailDomains
.
get
(
0
).
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
costDao
.
updateById
(
costDomain
);
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
View file @
266fb527
...
...
@@ -77,7 +77,7 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
if
(
StringUtils
.
isBlank
(
costDomain
.
getCategoryName
())){
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
int
insert
=
costDao
.
insert
(
costDomain
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
View file @
266fb527
...
...
@@ -104,7 +104,7 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
if
(
StringUtils
.
isBlank
(
costDomain
.
getCategoryName
())){
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
costDao
.
insert
(
costDomain
);
...
...
@@ -132,7 +132,7 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
if
(
StringUtils
.
isNotBlank
(
costDomain
.
getCategoryName
())){
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
costDao
.
insert
(
costDomain
);
...
...
@@ -232,7 +232,7 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
costDomain
.
setToRmbRate
(
toRmbRate1
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate1
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
if
(
StringUtils
.
isBlank
(
costDomain
.
getCategoryName
())){
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
costDao
.
insert
(
costDomain
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
View file @
266fb527
...
...
@@ -128,7 +128,7 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
if
(
StringUtils
.
isNotBlank
(
costTypeDomain
.
getCategoryName
())){
costDetail
.
setCategoryName
(
costTypeDomain
.
getCategoryName
());
}
else
{
costDetail
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDetail
.
getProject
())
&&
!
costDetail
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDetail
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDetail
.
getProject
())
&&
costDetail
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
// 生成付款费用详情
costDetailDao
.
insert
(
costDetail
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewReceiptServiceImpl.java
View file @
266fb527
...
...
@@ -77,7 +77,7 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setAmountRmb
(
costDomain
.
getAmount
().
multiply
(
toRmbRate
).
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
));
if
(
StringUtils
.
isBlank
(
costDomain
.
getCategoryName
())){
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
!
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
costDomain
.
setCategoryName
((
StringUtils
.
isNotBlank
(
costDomain
.
getProject
())
&&
costDomain
.
getProject
().
equals
(
"集团"
)
?
"管理成本"
:
"日常费用"
));
}
Integer
insert
=
costDao
.
insert
(
costDomain
);
...
...
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