mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 23:29:48 +08:00
update 查询用户可申请开票的订单列表
This commit is contained in:
@@ -247,6 +247,7 @@ public class OrderController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询未开发票订单
|
* 查询未开发票订单
|
||||||
* 时间限制60天内
|
* 时间限制60天内
|
||||||
|
* http://localhost:8080/uniapp/order/queryUninvoicedOrderList
|
||||||
*/
|
*/
|
||||||
@PostMapping("/queryUninvoicedOrderList")
|
@PostMapping("/queryUninvoicedOrderList")
|
||||||
public RestApiResponse<?> queryUninvoicedOrderList(HttpServletRequest request, @RequestBody QueryOrderDTO dto) {
|
public RestApiResponse<?> queryUninvoicedOrderList(HttpServletRequest request, @RequestBody QueryOrderDTO dto) {
|
||||||
@@ -259,6 +260,9 @@ public class OrderController extends BaseController {
|
|||||||
}
|
}
|
||||||
List<OrderVO> list = orderService.queryUninvoicedOrderList(dto);
|
List<OrderVO> list = orderService.queryUninvoicedOrderList(dto);
|
||||||
response = new RestApiResponse<>(ImmutableMap.of("list", list));
|
response = new RestApiResponse<>(ImmutableMap.of("list", list));
|
||||||
|
} catch (BusinessException e) {
|
||||||
|
logger.error("查询未开发票订单 warn", e);
|
||||||
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||||
} catch (Exception e){
|
} catch (Exception e){
|
||||||
logger.error("查询未开发票订单 error", e);
|
logger.error("查询未开发票订单 error", e);
|
||||||
response = new RestApiResponse<>("00300003", "查询未开发票订单异常");
|
response = new RestApiResponse<>("00300003", "查询未开发票订单异常");
|
||||||
|
|||||||
@@ -994,6 +994,9 @@ public class OrderService {
|
|||||||
orderList = orderList.stream()
|
orderList = orderList.stream()
|
||||||
.filter(x -> x.getOrderAmount().compareTo(BigDecimal.ZERO) > 0)
|
.filter(x -> x.getOrderAmount().compareTo(BigDecimal.ZERO) > 0)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
if (CollectionUtils.isEmpty(orderList)) {
|
||||||
|
return orderList;
|
||||||
|
}
|
||||||
|
|
||||||
// 查询最近60天申请开票记录
|
// 查询最近60天申请开票记录
|
||||||
QueryInvoiceRecordDTO build = QueryInvoiceRecordDTO.builder()
|
QueryInvoiceRecordDTO build = QueryInvoiceRecordDTO.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user