變更 根據進入位置禁入車輛搜尋 最多500台

This commit is contained in:
威勝 張 2024-04-24 12:45:39 +08:00
parent 3e3bd91f6a
commit c2698a66c2
3 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@ using Parking_space_WebAPI.Services;
using Parking_space_WebAPI.ViewModel; using Parking_space_WebAPI.ViewModel;
using Parking_space_WebAPI.Authorization; using Parking_space_WebAPI.Authorization;
namespace Parking_space_WebAPI.Controllers namespace Parking_space_WebAPI.Controllers
{ {
@ -92,7 +93,7 @@ namespace Parking_space_WebAPI.Controllers
in_time = c.in_time, in_time = c.in_time,
out_time = c.out_time, out_time = c.out_time,
location = c.location, location = c.location,
}).ToListAsync(); }).Skip(0).Take(500).ToListAsync();
return in_car_table; return in_car_table;

View File

@ -16,6 +16,8 @@ builder.Services.AddCors();
// Add services to the container. // Add services to the container.
builder.Services.AddControllers(); builder.Services.AddControllers();
// 連線PostgreSQL資料庫 // 連線PostgreSQL資料庫
var connectionString = "Server=140.125.20.183;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800"; var connectionString = "Server=140.125.20.183;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800";
//var connectionString = "Server=127.0.0.1;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800"; //var connectionString = "Server=127.0.0.1;UserID=postgres;password=EL404el404;Database=postgres;port=5432;Search Path=public;CommandTimeout=1800";

View File

@ -8,7 +8,7 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"dotnetRunMessages": true, "dotnetRunMessages": true,
"applicationUrl": "http://localhost:5174" "applicationUrl": "http://localhost:7700"
}, },
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",