fix:sql bug

This commit is contained in:
李鹏军 2024-04-02 20:11:57 +08:00
parent 01e4ddf17c
commit a261c21284

View File

@ -132,7 +132,9 @@ public class TrackOrderService : ApplicationService
if (order == default) throw new BusinessException(message: "订单不存在");
return await _orderRepository.UpdateColumnAsync(order, x => x.IsCompleted == input.IsCompleted);
order.IsCompleted = input.IsCompleted;
return await _orderRepository.UpdateColumnAsync(order, x => new { x.IsCompleted });
}
/// <summary>