Commit b4a96c68 authored by 蔡镇泽's avatar 蔡镇泽

费用结算

parent 7a83fb60
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment