| | |
| | | Map<String, String> paymentStateMap = dictDetailRepository.findByDictName(Constant.PAYMENT_STATE).parallelStream().collect(Collectors.toMap(DictDetail::getValue, DictDetail::getLabel)); |
| | | Map<String, String> contractStatusMap = dictDetailRepository.findByDictName(Constant.CONTRACT_STATUS).parallelStream().collect(Collectors.toMap(DictDetail::getValue, DictDetail::getLabel)); |
| | | |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | SimpleDateFormat ymsdf = new SimpleDateFormat("yyyy-MM"); |
| | | for (ContractDto contract : all) { |
| | | String firstName = contractFirstName(contractMapper.toEntity(contract)); |
| | | String secondName = contractSecondName(contractMapper.toEntity(contract)); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | String servicePaymentDate = null; |
| | | if(contract.getServicePaymentDate() != null) { |
| | | servicePaymentDate = sdf.format(contract.getServicePaymentDate()); |
| | |
| | | map.put("合同终版文件", contract.getRelatedDocumentsFinal()); |
| | | map.put("合同状态", contractStatusMap.containsKey(contract.getContractStatus()) ? contractStatusMap.get(contract.getContractStatus()) : ""); |
| | | map.put("备注信息", contract.getRemarks()); |
| | | map.put("业绩日期", ymsdf.format(contract.getPerformanceDate())); |
| | | map.put("创建者", contract.getCreateBy()); |
| | | map.put("创建日期", contract.getCreateTime()); |
| | | list.add(map); |
| | |
| | | Map<String, String> contractStatusMap = dictDetailRepository.findByDictName(Constant.CONTRACT_STATUS).parallelStream().collect(Collectors.toMap(DictDetail::getValue, DictDetail::getLabel)); |
| | | Map<String, String> acceptStatusMap = dictDetailRepository.findByDictName(Constant.ACCEPT_STATUS).parallelStream().collect(Collectors.toMap(DictDetail::getValue, DictDetail::getLabel)); |
| | | |
| | | SimpleDateFormat ymsdf = new SimpleDateFormat("yyyy-MM"); |
| | | for (Contract contract : contractList) { |
| | | String firstName = contractFirstName(contract); |
| | | String secondName = contractSecondName(contract); |
| | |
| | | map.put("验收状态", acceptStatusMap.get(contract.getAcceptStatus())); |
| | | map.put("合同附件", relatedDocumentsAttachment); |
| | | map.put("备注信息", contract.getRemarks()); |
| | | map.put("业绩日期", ymsdf.format(contract.getPerformanceDate())); |
| | | map.put("创建者", contract.getCreateBy()); |
| | | map.put("创建日期", contract.getCreateTime()); |
| | | list.add(map); |
| | |
| | | resources.setContractNumber(contractNumber.toString()); |
| | | if (companyId != null) { |
| | | resources.setCompanyId(companyId); |
| | | } else { |
| | | throw new BadRequestException("未匹配到所属公司,所属公司不能为空。"); |
| | | } |
| | | } |
| | | |