|
|
|
@ -803,12 +803,12 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
//这个不等于空表示要查询发票对应的单据
|
|
|
|
|
if (filterOrderRequest.getInvoiceEncode() != null) {
|
|
|
|
|
//查询发票详情
|
|
|
|
|
QueryWrapper<IoOrderInvoiceEntity> ew=new QueryWrapper<IoOrderInvoiceEntity>();
|
|
|
|
|
ew.eq("invoiceEncode",filterOrderRequest.getInvoiceEncode());
|
|
|
|
|
QueryWrapper<IoOrderInvoiceEntity> ew = new QueryWrapper<IoOrderInvoiceEntity>();
|
|
|
|
|
ew.eq("invoiceEncode", filterOrderRequest.getInvoiceEncode());
|
|
|
|
|
List<IoOrderInvoiceEntity> ioOrderInvoiceEntity = orderInvoiceService.list(ew);
|
|
|
|
|
List<String> orderIds = ioOrderInvoiceEntity.stream().map(IoOrderInvoiceEntity::getOrderIdFk).collect(Collectors.toList());
|
|
|
|
|
filterOrderRequest.setOrderIds(orderIds);
|
|
|
|
|
if(CollectionUtils.isEmpty(orderIds)){
|
|
|
|
|
if (CollectionUtils.isEmpty(orderIds)) {
|
|
|
|
|
PageInfo<IoOrderResponse> pageInfo = new PageInfo<>();
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
}
|
|
|
|
|