|
|
@@ -35,10 +35,7 @@ namespace OASystem.API.OAMethodLib.Quartz.Jobs
|
|
|
try
|
|
|
{
|
|
|
string baseUrl = "http://132.232.92.186:8888/";
|
|
|
- if (!baseUrl.EndsWith("/"))
|
|
|
- {
|
|
|
- baseUrl = baseUrl.TrimEnd('/');
|
|
|
- }
|
|
|
+ baseUrl = baseUrl.TrimEnd('/');
|
|
|
|
|
|
// 创建HttpClient
|
|
|
var httpClient = _httpClientFactory.CreateClient();
|
|
|
@@ -104,7 +101,7 @@ namespace OASystem.API.OAMethodLib.Quartz.Jobs
|
|
|
try
|
|
|
{
|
|
|
// 构建API URL
|
|
|
- string apiUrl = $"{baseUrl}/api/PersonnelModule/AiPerformanceAnalysis_AllDepartmentAsync";
|
|
|
+ string apiUrl = $"{baseUrl}/api/PersonnelModule/AiPerformanceAnalysis_AllDepartment";
|
|
|
|
|
|
// 构建查询参数
|
|
|
var queryParams = new Dictionary<string, string>
|
|
|
@@ -118,8 +115,6 @@ namespace OASystem.API.OAMethodLib.Quartz.Jobs
|
|
|
// 构建完整URL
|
|
|
var queryString = string.Join("&", queryParams.Select(kvp => $"{kvp.Key}={Uri.EscapeDataString(kvp.Value)}"));
|
|
|
string fullUrl = $"{apiUrl}?{queryString}";
|
|
|
- //url编码
|
|
|
- fullUrl = Uri.EscapeDataString(fullUrl);
|
|
|
|
|
|
_logger.LogInformation($"正在为用户 {user.CnName}(ID:{user.Id}, 部门:{user.DepName}) 生成绩效数据...");
|
|
|
_logger.LogInformation($"API URL: {fullUrl}");
|