fix 查询优化
This commit is contained in:
@@ -56,7 +56,7 @@ public class BusinessPlacesController : ControllerBase
|
|||||||
[IgnoreTenant]
|
[IgnoreTenant]
|
||||||
public async Task<List<BusinessPlaceListResponse>> GetAllList(string tenant)
|
public async Task<List<BusinessPlaceListResponse>> GetAllList(string tenant)
|
||||||
{
|
{
|
||||||
return await _businessPlaceService.GetOpenedListAsync();
|
return await _businessPlaceService.GetOpenedListAsync(null, tenant);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -48,4 +48,9 @@ public class OrderAggregationResponse
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 订单时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,4 +31,9 @@ public class OrderBookingResponse
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string UserNo { get; set; }
|
public string UserNo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 订单时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ public class OrderService : BaseOrderService, IOrderService
|
|||||||
{
|
{
|
||||||
No = x.No,
|
No = x.No,
|
||||||
BusinessPlaceName = bplace.Name,
|
BusinessPlaceName = bplace.Name,
|
||||||
|
CreateTime = x.CreateTime
|
||||||
})
|
})
|
||||||
.ToPageListAsync(page);
|
.ToPageListAsync(page);
|
||||||
|
|
||||||
@@ -317,7 +318,7 @@ public class OrderService : BaseOrderService, IOrderService
|
|||||||
Name = d.Name,
|
Name = d.Name,
|
||||||
ImageUrl = d.ImageUrl,
|
ImageUrl = d.ImageUrl,
|
||||||
Number = x.Number,
|
Number = x.Number,
|
||||||
Price = x.Price
|
Price = x.Price,
|
||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
|||||||
@@ -22,18 +22,7 @@ public class Startup : DefaultStartup
|
|||||||
|
|
||||||
public override void ConfigureServices(IServiceCollection services)
|
public override void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
base.ConfigureServices(services);
|
base.ConfigureServices(services);
|
||||||
//protected static string Obfuscate(string value)
|
|
||||||
//{
|
|
||||||
// var last4Chars = "****";
|
|
||||||
// if (value.IsPresent() && value.Length > 4)
|
|
||||||
// {
|
|
||||||
// last4Chars = value.Substring(value.Length - 4);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// return "****" + last4Chars;
|
|
||||||
//}
|
|
||||||
|
|
||||||
services.AddRedis();
|
services.AddRedis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user