qmj 6 часов назад
Родитель
Сommit
42076cda35

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

@@ -262,7 +262,7 @@ public class OrderInvoiceService {
             throw new ServiceException("仅失败或作废的发票可重新开票");
         }
         // 重置为未开,复用客户开票参数重开(运营身份 currentUserId 传 null 跳过归属校验)
-        PosOrder order = posOrderMapper.selectPosOrderById(orderId);
+        PosOrder order = posOrderMapper.selectOne(new LambdaQueryWrapper<PosOrder>().eq(PosOrder::getDdId,orderId.toString()));
         if (order == null) {
             throw new ServiceException("订单不存在");
         }