Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
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
hubin
long-tern-care-service
Commits
b4a96c68
Commit
b4a96c68
authored
May 09, 2022
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用结算
parent
7a83fb60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
AccountServiceImpl.java
...hungraim/ltc/account/service/impl/AccountServiceImpl.java
+6
-4
No files found.
account/account-service/src/main/java/com/hungraim/ltc/account/service/impl/AccountServiceImpl.java
View file @
b4a96c68
...
@@ -155,6 +155,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -155,6 +155,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
BigDecimal
comp
=
divide
.
multiply
(
divide1
).
setScale
(
4
,
BigDecimal
.
ROUND_DOWN
);
//基护完成率
BigDecimal
comp
=
divide
.
multiply
(
divide1
).
setScale
(
4
,
BigDecimal
.
ROUND_DOWN
);
//基护完成率
vo
.
setCompletionRateFoundationProtection
(
comp
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
doubleValue
()
+
"%"
);
vo
.
setCompletionRateFoundationProtection
(
comp
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
doubleValue
()
+
"%"
);
//巡护基护完成考核
//巡护基护完成考核
vo
.
setPatrolAndBasicProtectionCompletedAssessment
(
"-"
);
BigDecimal
patrolAndBasicProtectionCompletedAssessment
=
BigDecimal
.
valueOf
(
0.8
);
//巡护基护完成考核
BigDecimal
patrolAndBasicProtectionCompletedAssessment
=
BigDecimal
.
valueOf
(
0.8
);
//巡护基护完成考核
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
long
serviceTime
=
0
;
//服务时长/毫秒
long
serviceTime
=
0
;
//服务时长/毫秒
...
@@ -259,6 +260,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -259,6 +260,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
BigDecimal
comp2
=
divide2
.
multiply
(
divide3
).
setScale
(
4
,
BigDecimal
.
ROUND_DOWN
);
//照护完成率
BigDecimal
comp2
=
divide2
.
multiply
(
divide3
).
setScale
(
4
,
BigDecimal
.
ROUND_DOWN
);
//照护完成率
vo
.
setCareCompletionRate
(
comp2
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
doubleValue
()
+
"%"
);
vo
.
setCareCompletionRate
(
comp2
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
doubleValue
()
+
"%"
);
//巡护照护完成考核
//巡护照护完成考核
vo
.
setPatrolCareCompletionAssessment
(
"-"
);
BigDecimal
patrolCareCompletionAssessment
=
BigDecimal
.
valueOf
(
0.8
);
//巡护照护完成考核
BigDecimal
patrolCareCompletionAssessment
=
BigDecimal
.
valueOf
(
0.8
);
//巡护照护完成考核
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
if
(
FndSrvMode
.
PATROL
.
getCode
().
equals
(
bo
.
getSrvModeId
()))
{
//巡护
long
serviceTime
=
0
;
//服务时长/毫秒
long
serviceTime
=
0
;
//服务时长/毫秒
...
@@ -337,10 +339,10 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
...
@@ -337,10 +339,10 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
totalAmountDue
=
totalAmountDue
.
add
(
BigDecimal
.
valueOf
(
vo
.
getTotalAmountDue
()));
totalAmountDue
=
totalAmountDue
.
add
(
BigDecimal
.
valueOf
(
vo
.
getTotalAmountDue
()));
}
}
totalVo
.
setFoundationProtectionCost
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setFoundationProtectionCost
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setExpensesPayableFoundationProtection
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setExpensesPayableFoundationProtection
(
expensesPayableFoundationProtection
.
doubleValue
());
totalVo
.
setCareCosts
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setCareCosts
(
careCosts
.
doubleValue
());
totalVo
.
setCarePayable
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setCarePayable
(
carePayable
.
doubleValue
());
totalVo
.
setTotalAmountDue
(
foundationProtectionCost
.
doubleValue
());
totalVo
.
setTotalAmountDue
(
totalAmountDue
.
doubleValue
());
ExpenseVo
expenseVo
=
new
ExpenseVo
();
ExpenseVo
expenseVo
=
new
ExpenseVo
();
expenseVo
.
setExpenseSettlements
(
vos
);
expenseVo
.
setExpenseSettlements
(
vos
);
expenseVo
.
setTotal
(
totalVo
);
expenseVo
.
setTotal
(
totalVo
);
...
...
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