소스 검색

返回店铺是否能开票

qmj 1 개월 전
부모
커밋
a4a0769efb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruoyi-admin/src/main/java/com/ruoyi/app/order/OrderInvoiceService.java

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/app/order/OrderInvoiceService.java

@@ -300,7 +300,7 @@ public class OrderInvoiceService {
 
     /** 客户查询订单发票;门店不可开票时 invoiceStatus=null(客户端据此隐藏入口)。 */
     public PosOrderInvoiceVo getInvoice(Long orderId, Long currentUserId) {
-        PosOrder order = posOrderMapper.selectOne(new LambdaQueryWrapper<PosOrder>().eq(PosOrder::getDdId,orderId));
+        PosOrder order = posOrderMapper.selectOne(new LambdaQueryWrapper<PosOrder>().eq(PosOrder::getDdId,String.valueOf(orderId)));
         if (order == null || !Objects.equals(order.getUserId(), currentUserId)) {
             throw new ServiceException("订单不存在");
         }