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