|
|
@ -798,7 +798,7 @@ public class AppBusSalesOrderService { |
|
|
|
PagerQuery<LoanPreloanQuery> pq = CoverUtils.getPagerQuery(pagerQuery); |
|
|
|
ResultBean<PagerVo<LoanPreloanVo>> resultBean = loanPreloanCreditApplyFeign.getOrderLoanPagerList(pq); |
|
|
|
PagerVo<LoanPreloansVo> v = new PagerVo<>(); |
|
|
|
if(resultBean.getData() != null){ |
|
|
|
if (resultBean.getData() != null) { |
|
|
|
List<LoanPreloansVo> voList = Optional.ofNullable(resultBean.getData().getRecords()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), LoanPreloansVo.class)).collect(Collectors.toList()); |
|
|
|
|
|
|
|
BeanUtil.copyProperties(resultBean.getData(), v); |
|
|
@ -813,10 +813,30 @@ public class AppBusSalesOrderService { |
|
|
|
} |
|
|
|
v.setRecords(voList); |
|
|
|
return rb.success().setMsg("当前共查询到" + v.getTotal() + "条记录").setData(v); |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
return rb.success().setMsg("当前共查询到" + v.getTotal() + "条记录").setData(v); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean saveSaleOrderVin2(InputVinDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
VinDto vinDto = new VinDto(); |
|
|
|
List<InputVinListDto> vinList = dto.getVinList(); |
|
|
|
List<InputVinListDto> newVinList = new ArrayList<>(); |
|
|
|
if (!vinList.isEmpty()) { |
|
|
|
for (InputVinListDto inputVinListDto : vinList) { |
|
|
|
if (null != inputVinListDto.getViewType()) { |
|
|
|
if (inputVinListDto.getViewType() != 1) { |
|
|
|
newVinList.add(inputVinListDto); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
dto.setVinList(newVinList); |
|
|
|
BeanUtil.copyProperties(dto, vinDto); |
|
|
|
ResultBean resultBean = busSalesOrderFeign.saveSaleOrderInputVin(vinDto); |
|
|
|
return resultBean; |
|
|
|
} |
|
|
|
} |