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