| | |
| | | } |
| | | |
| | | private void setCcds(ContractDto contractDto, Object[] os) { |
| | | List<ContractCollectionDetailDto> contractCollectionDetailDtos = new ArrayList<>(); |
| | | for (int j = 0; j < 10; j++) { |
| | | try { |
| | | int index = j * 10 + 53; |
| | | if (os[index] == null || os[index].equals("")) { |
| | | return; |
| | | } |
| | | // if (os[index] == null || os[index].equals("")) { |
| | | // return; |
| | | // } |
| | | ContractCollectionDetailDto ccd = new ContractCollectionDetailDto(); |
| | | ccd.setContractId(contractDto.getContractId()); |
| | | |
| | |
| | | ccd.setCollectionAmount(defaultValue(os[qbl + index + 7])); |
| | | ccd.setSpecialReduction(defaultValue(os[qbl + index + 8])); |
| | | ccd.setUnpaidMoney(defaultValue(os[qbl + index + 9])); |
| | | contractDto.getContractCollectionDetailDtos().add(ccd); |
| | | contractCollectionDetailDtos.add(ccd); |
| | | } catch (Exception e){ |
| | | continue; |
| | | } |
| | | } |
| | | contractDto.setContractCollectionDetailDtos(contractCollectionDetailDtos); |
| | | } |
| | | |
| | | private void setCps(ContractDto contractDto, Object[] os) { |