|
|
@@ -83,7 +83,7 @@ public class OrderInvoiceService {
|
|
|
*/
|
|
|
public PosOrderInvoiceVo applyInvoice(ApplyInvoiceDto dto, Long currentUserId) {
|
|
|
Long orderId = dto.getOrderId();
|
|
|
- PosOrder order = posOrderMapper.selectPosOrderById(orderId);
|
|
|
+ PosOrder order = posOrderMapper.selectOne(new LambdaQueryWrapper<PosOrder>().eq(PosOrder::getDdId,orderId.toString()));
|
|
|
if (order == null) {
|
|
|
throw new ServiceException("订单不存在");
|
|
|
}
|