fix 超时设置

This commit is contained in:
2024-11-28 14:57:39 +08:00
parent 2004035d9b
commit 971ef87957
7 changed files with 38 additions and 26 deletions

View File

@@ -1,6 +1,7 @@
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Services;
using Dlhis.Jip.Api.Responses;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -23,12 +24,14 @@ public class SyncController : ControllerBase
}
[HttpPost("/api/sync/gainfo/werk")]
[IgnoreTenant]
public async Task TodoByWerkAsync(CodeRequest request)
{
await _gainfoUpdateService.TodoByWerkAsync(request.Code);
}
[HttpPost("/api/sync/gainfo/user")]
[IgnoreTenant]
public async Task TodoByCodeAsync(CodeRequest request)
{
await _gainfoUpdateService.TodoByCodeAsync(request.Code);
@@ -46,8 +49,9 @@ public class SyncController : ControllerBase
{
return await _jinkoSapService.GetPositionsAsync();
}
[HttpPost("/api/sync/businessTrips")]
[IgnoreTenant]
public async Task GetPositionsAsync(CodeRequest request)
{
await _sapBusinessTripService.HandlerBusinessTripsByFactoryAsync(request.Code);