fix 查询优化

This commit is contained in:
2024-03-21 15:40:22 +08:00
parent 6d3a19b283
commit c582fb40c0
5 changed files with 14 additions and 14 deletions

View File

@@ -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>

View File

@@ -48,4 +48,9 @@ public class OrderAggregationResponse
return 0; return 0;
} }
} }
/// <summary>
/// 订单时间
/// </summary>
public DateTime CreateTime { get; set; }
} }

View File

@@ -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; }
} }

View File

@@ -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();

View File

@@ -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();
} }