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