|
@@ -203,15 +203,15 @@ public class ContractServiceImpl implements ContractService{
|
|
|
contracts.removeAll(dbParents);
|
|
|
Map<String, List<Contract>> map = contracts.stream().collect(Collectors.groupingBy(Contract::getParentId));
|
|
|
for (Contract dbParent : dbParents) {
|
|
|
- UseMoneyBondVO qualityMoney = useMoneyDetailService.getBondData(dbParent.getProjectId());
|
|
|
ContractResponse r = new ContractResponse();
|
|
|
+ BeanUtils.copyProperties(dbParent, r);
|
|
|
+ UseMoneyBondVO qualityMoney = useMoneyDetailService.getBondData(dbParent.getProjectId());
|
|
|
if(qualityMoney!= null){
|
|
|
if(qualityMoney.getTotalAmount() != null){
|
|
|
r.setQualityMoney(new BigDecimal(String.valueOf(qualityMoney.getTotalAmount())));
|
|
|
}
|
|
|
r.setQualityMoneyStatus(qualityMoney.getIWriteOff());
|
|
|
}
|
|
|
- BeanUtils.copyProperties(dbParent, r);
|
|
|
if(!map.isEmpty()) {
|
|
|
List<Contract> children = map.get(r.getId());
|
|
|
if(children != null && !children.isEmpty()){
|