update: 【GetDetails】获取轨迹明细,对orderNo参数增加可选项避免不传为空时报400错误

This commit is contained in:
云龙 王 2024-11-28 10:35:08 +08:00
parent 7fe025c9bd
commit 99bf506ab7

View File

@ -113,7 +113,7 @@ public class TrackOrderService : ApplicationService
/// <param name="systemId"></param> /// <param name="systemId"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost("GetDetails")] [HttpPost("GetDetails")]
public async Task<List<TrackOrderDetailDto>> GetTracksAsync(int orderId, string orderNo, int systemId) public async Task<List<TrackOrderDetailDto>> GetTracksAsync(int orderId, string? orderNo, int systemId)
{ {
Expression<Func<OrderEntity, bool>> whereExpression = null; Expression<Func<OrderEntity, bool>> whereExpression = null;
if (orderId > 0) if (orderId > 0)