| | |
| | | */ |
| | | @Override |
| | | public BigDecimal contractTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 搜索数据处理 |
| | | String signStartDate = criteria.getSignDate() != null ? criteria.getSignDate().get(0).toString() : null; |
| | | String signEndDate = criteria.getSignDate() != null ? criteria.getSignDate().get(1).toString() : null; |
| | | // 查询合同款总金额 |
| | | BigDecimal contractTotalMoney = contractRepository.contractTotalMoney( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | return contractTotalMoney; |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public Integer contractDelayTotalAmount(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 合同款延期数 |
| | | Integer contractDelayTotalAmount = 0; |
| | | // 搜索数据处理 |
| | |
| | | // 查询有合同款的合同数据 |
| | | List<Contract> contractList = contractRepository.findContractAmountNotNull( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | // 循环有合同款的合同数据 |
| | | for(int i = 0; i < contractList.size(); i ++) { |
| | |
| | | */ |
| | | @Override |
| | | public BigDecimal contractDelayTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 合同款延期金额 |
| | | BigDecimal contractDelayTotalMoney = new BigDecimal("0.00"); |
| | | // 搜索数据处理 |
| | |
| | | // 查询有合同款的合同数据 |
| | | List<Contract> contractList = contractRepository.findContractAmountNotNull( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | // 循环有合同款的合同数据 |
| | | for(int i = 0; i < contractList.size(); i ++) { |
| | |
| | | */ |
| | | @Override |
| | | public BigDecimal advancePaymentTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 预收款总金额 |
| | | BigDecimal advancePaymentTotalMoney = new BigDecimal("0.00"); |
| | | // 查询所有合同信息 |
| | |
| | | */ |
| | | @Override |
| | | public BigDecimal serviceTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 搜索数据处理 |
| | | String signStartDate = criteria.getSignDate() != null ? criteria.getSignDate().get(0).toString() : null; |
| | | String signEndDate = criteria.getSignDate() != null ? criteria.getSignDate().get(1).toString() : null; |
| | | // 查询运维服务总金额 |
| | | BigDecimal serviceTotalMoney = contractRepository.serviceTotalMoney( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | return serviceTotalMoney; |
| | | } |
| | |
| | | */ |
| | | @Override |
| | | public Integer serviceDelayTotalAmount(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 运维服务延期数 |
| | | Integer serviceDelayTotalAmount = 0; |
| | | // 搜索数据处理 |
| | |
| | | // 查询有运维服务的合同数据 |
| | | List<Contract> contractList = contractRepository.findServiceAmountNotNull( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | // 循环有运维服务的合同数据 |
| | | for(int i = 0; i < contractList.size(); i ++) { |
| | |
| | | */ |
| | | @Override |
| | | public BigDecimal serviceDelayTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 运维服务延期金额 |
| | | BigDecimal serviceDelayTotalMoney = new BigDecimal("0.00"); |
| | | // 搜索数据处理 |
| | |
| | | // 查询有运维服务的合同数据 |
| | | List<Contract> contractList = contractRepository.findServiceAmountNotNull( |
| | | criteria.getContractNumber(), criteria.getContractName(), criteria.getFirstId(), criteria.getSecondId(), signStartDate, signEndDate, criteria.getContractType(), |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode() |
| | | criteria.getContractPaymentState(), criteria.getServicePaymentState(), criteria.getContractStatus(), criteria.getContractAreaCode(), criteria.getCompanys() |
| | | ); |
| | | // 循环有运维服务的合同数据 |
| | | for(int i = 0; i < contractList.size(); i ++) { |
| | |
| | | */ |
| | | @Override |
| | | public BigDecimal receivePaymentTotalMoney(ContractQueryCriteria criteria){ |
| | | criteria.setCompanys(SecurityUtils.getCompanyIds()); |
| | | // 应收款总金额 |
| | | BigDecimal receivePaymentTotalMoney = new BigDecimal("0.00"); |
| | | // 查询所有合同信息 |