| | |
| | | @Lazy |
| | | private final ISysDictTypeService dictTypeService; |
| | | |
| | | @Resource |
| | | @Lazy |
| | | private final StateAgreementService stateAgreementService; |
| | | |
| | | @Resource |
| | | @Lazy |
| | | private final StateApplyRecordItemService stateApplyRecordItemService; |
| | | |
| | | @Resource |
| | | @Lazy |
| | | private final StateApplyRecordService stateApplyRecordService; |
| | | |
| | | |
| | | //计算最上面顶部统计数据 |
| | | @Override |
| | |
| | | |
| | | // 遍历内层的 Map(按项目阶段分类) |
| | | for (ProjectExecutionSumVO executionSum : projectExecutionMap.values()) { |
| | | // // 累加签字人数 |
| | | // totalSignedPersons += executionSum.getSignedPersons() != null ? executionSum.getSignedPersons() : 0L; |
| | | // |
| | | // // 累加未签字人数 |
| | | // totalNotSignedPersons += executionSum.getNotSignedPersons() != null ? executionSum.getNotSignedPersons() : 0L; |
| | | |
| | | // // 累加货币补偿人数 |
| | | // totalMoneyCompensationPersons += executionSum.getMoneyCompensationPersons() != null ? executionSum.getMoneyCompensationPersons() : 0L; |
| | | // |
| | | // // 累加房屋置换人数 |
| | | // totalGoodsCompensationPersons += executionSum.getGoodsCompensationPersons() != null ? executionSum.getGoodsCompensationPersons() : 0L; |
| | | |
| | | // 累加项目预算金额 |
| | | totalVirtualMoney.add(executionSum.getVirtualMoney() != null ? executionSum.getVirtualMoney() : new BigDecimal("0")); |
| | | } |
| | |
| | | double settlementMoney = 0; |
| | | |
| | | if (CollectionUtils.isNotEmpty(stateHouseholdList)) { |
| | | |
| | | List<String> stateHouseholdIds = stateHouseholdList.stream().map(StateHousehold::getId).collect(Collectors.toList()); |
| | | |
| | | //合同金额 |
| | | LambdaQueryWrapper<StateAgreement> stateAgreementLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | stateAgreementLambdaQueryWrapper.in(StateAgreement::getStateHouseholdId, stateHouseholdIds); |
| | |
| | | if (CollectionUtils.isNotEmpty(stateAgreementList)) { |
| | | agreementMoney = stateAgreementList.stream().mapToDouble(StateAgreement::getMoney).sum(); |
| | | } |
| | | |
| | | |
| | | //产全置换合同金额 |
| | | double cqzhagreementMoney = 0; |
| | |
| | | //结算金额=货币补偿+产权置换价值差 |
| | | settlementMoney = settlementMoney + cqxhMoney; |
| | | } |
| | | |
| | | } |
| | | |
| | | result.setAgreementMoney(BigDecimal.valueOf(agreementMoney).setScale(4, RoundingMode.HALF_UP)); |
| | | result.setSettlementMoney(BigDecimal.valueOf(settlementMoney).setScale(4, RoundingMode.HALF_UP)); |
| | | |
| | | return result; |
| | | } |
| | | |
| | |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | List<String> streetList = new ArrayList<>(); |
| | | |
| | | List<String> projectIdList = list.stream().map(StateProject::getId).collect(Collectors.toList()); |
| | |
| | | } |
| | | |
| | | //设置置换前面积 现在有项目所有信息 需要通过项目获取关联的房产信息总和 |
| | | |
| | | |
| | | private Map<String, Integer> appendProcessStatusMap(List<StateProject> stateProjectList) { |
| | | Map<String, Integer> result = new HashMap<>(); |
| | | if (CollectionUtils.isEmpty(stateProjectList)) { |