Commit 843c7e5d authored by 蔡镇泽's avatar 蔡镇泽

费用结算

parent b4a96c68
......@@ -114,12 +114,14 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
int startDay = getDay(vo.getSrvStartTime());
int endDay = getDay(vo.getSrvEndTime());
vo.setEffectiveSettlementDate(endDay - startDay + 1);
//基护费用
//基护费用标准
Integer effectiveSettlementDate = vo.getEffectiveSettlementDate();//有效结算日
ChCfgCostStandard costStandard = chCfgCostStandardMapper.selectOne(new LambdaQueryWrapper<ChCfgCostStandard>()
.eq(ChCfgCostStandard::getOrganId, bo.getOrganId())
.eq(ChCfgCostStandard::getSrvLevelId, bo.getSrvLevelId())
.eq(ChCfgCostStandard::getSrvModeId, bo.getSrvModeId()));//基护费用标准(可配置)
vo.setCostStandard(costStandard + "元/人/天");
//基护费用
BigDecimal foundation = BigDecimal.valueOf(costStandard.getCost()).multiply(BigDecimal.valueOf(effectiveSettlementDate));
vo.setFoundationProtectionCost(foundation.doubleValue());
//基护完成率
......
......@@ -43,6 +43,11 @@ public class ExpenseSettlementVo {
private Integer effectiveSettlementDate;
/**
* 基护费用标准
*/
private String costStandard;
/**
* 基护费用
*/
private Double foundationProtectionCost;
......
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