|
|
|
@ -75,6 +75,8 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
IoAddInoutService ioAddInoutService;
|
|
|
|
|
@Resource
|
|
|
|
|
IoCheckInoutService ioCheckInoutService;
|
|
|
|
|
@Resource
|
|
|
|
|
IoOrderInvoiceService orderInvoiceService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询单据列表
|
|
|
|
@ -133,7 +135,6 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
if (StrUtil.isNotEmpty(filterOrderRequest.getSupInoivceSearch())) {
|
|
|
|
|
orderService.setInvoiceFiltes(filterOrderRequest);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (filterOrderRequest.getSourceLocalType() != null) {
|
|
|
|
|
if (filterOrderRequest.getSourceLocalType() == 1) {
|
|
|
|
|
filterOrderRequest.setSourceTypes(Arrays.asList(1, 2, 3, 4, 5));
|
|
|
|
@ -141,7 +142,6 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
filterOrderRequest.setSourceTypes(Arrays.asList(6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String customerId = getCustomerId();
|
|
|
|
|
if (!customerId.equals("110")) {
|
|
|
|
|
filterOrderRequest.setFromCorp(customerId);
|
|
|
|
@ -152,19 +152,8 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
if (ioOrderResponse.getCheckStatus() == null) {
|
|
|
|
|
ioOrderResponse.setCheckStatus(0 + "");
|
|
|
|
|
}
|
|
|
|
|
FilterOrderDetailCodeRequest filterOrderDetailCodeRequest = new FilterOrderDetailCodeRequest();
|
|
|
|
|
filterOrderDetailCodeRequest.setOrderIdFk(ioOrderResponse.getBillNo());
|
|
|
|
|
List<IoOrderDetailCodeResponse> ioOrderDetailCodeResponses = orderDetailBizService.getfilterOrderList(filterOrderDetailCodeRequest);
|
|
|
|
|
BigDecimal amount = new BigDecimal(0.00);
|
|
|
|
|
for (IoOrderDetailCodeResponse ioOrderDetailCodeRespons : ioOrderDetailCodeResponses) {
|
|
|
|
|
if (ioOrderDetailCodeRespons.getReCount() != 0 && ioOrderDetailCodeRespons.getPrice() != null) {
|
|
|
|
|
amount = amount.add(new BigDecimal(ioOrderDetailCodeRespons.getReCount()).multiply(ioOrderDetailCodeRespons.getPrice()));
|
|
|
|
|
}
|
|
|
|
|
ioOrderResponse = orderInvoiceService.findRegStausByBillNo(ioOrderResponse);
|
|
|
|
|
}
|
|
|
|
|
ioOrderResponse.setAllAmount(amount);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PageInfo<IoOrderResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|