diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/WerkService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/WerkService.cs index e9982a88..37c53331 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/WerkService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/WerkService.cs @@ -1,4 +1,4 @@ -using Dlhis.Basic.Organization.Response; +/*using Dlhis.Basic.Organization.Response; using Dlhis.Entity.Basic.Entity; using Kurisu.Core.User.Abstractions; using Kurisu.SqlSugar.Services; @@ -32,3 +32,4 @@ public class WerkService : IWerkService .FirstAsync(); } } +*/ \ No newline at end of file diff --git a/Src/Dlhis.Canteen/Order/Controllers/OrdersController.cs b/Src/Dlhis.Canteen/Order/Controllers/OrdersController.cs index 2034b1ed..f7d0cf09 100644 --- a/Src/Dlhis.Canteen/Order/Controllers/OrdersController.cs +++ b/Src/Dlhis.Canteen/Order/Controllers/OrdersController.cs @@ -38,6 +38,7 @@ public class OrdersController : ControllerBase /// /// /// + [AllowAnonymous] [HttpPost] public async Task AddAsync(OrderAddRequest request) { diff --git a/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs b/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs index 9d8bd945..be9e880c 100644 --- a/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs +++ b/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs @@ -10,6 +10,7 @@ using Kurisu.AspNetCore.Utils; using Kurisu.AspNetCore.Utils.Extensions; using Kurisu.Core.CustomClass; using Kurisu.Core.DataAccess.Dto; +using Kurisu.SqlSugar.Attributes; using Kurisu.SqlSugar.Extensions; using Kurisu.SqlSugar.Services; using Mapster; @@ -39,6 +40,7 @@ public class OrderService : IOrderService return page; } + [IgnoreTenant] public async Task AddAsync(OrderAddRequest request) { var device = await _dbContext.Queryable().Where(x => x.UniqueNo == request.DeviceUniqueNo).Where(x => x.Enable).FirstAsync(); diff --git a/Src/Dlhis.Canteen/appsettings.json b/Src/Dlhis.Canteen/appsettings.json index 1469a953..c244b003 100644 --- a/Src/Dlhis.Canteen/appsettings.json +++ b/Src/Dlhis.Canteen/appsettings.json @@ -13,7 +13,8 @@ "DefaultConnectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=yikatong;charset=utf8mb4;", "SlaveConnectionString": [], "Timeout": 30, - "SlowSqlTime": 1 + "SlowSqlTime": 1, + "EnableSqlLog": true }, "SwaggerOptions": { "Enable": true,