Commit f5e90828 by lcx

上传文件生成报错,his_data添加字段Original

parent 35345a57
...@@ -165,18 +165,19 @@ public ApiResponse Import([FromForm] IFormCollection form) ...@@ -165,18 +165,19 @@ public ApiResponse Import([FromForm] IFormCollection form)
_configService.Clear(allot.ID); _configService.Clear(allot.ID);
} }
var email = _claim.GetUserClaim(JwtClaimTypes.Mail);
if (allot.States == (int)AllotStates.FileUploaded) if (allot.States == (int)AllotStates.FileUploaded)
_backgroundTaskQueue.QueueBackgroundWorkItem(async token => _backgroundTaskQueue.QueueBackgroundWorkItem(async token =>
{ {
using (var scope = _serviceScopeFactory.CreateScope()) using (var scope = _serviceScopeFactory.CreateScope())
{ {
var scopedServices = scope.ServiceProvider.GetRequiredService<AllotService>(); var scopedServices = scope.ServiceProvider.GetRequiredService<AllotService>();
scopedServices.Generate(allot, _claim.GetUserClaim(JwtClaimTypes.Mail)); scopedServices.Generate(allot, email);
await Task.Delay(TimeSpan.FromSeconds(5), token); await Task.Delay(TimeSpan.FromSeconds(5), token);
} }
}); });
return new ApiResponse(ResponseType.OK); return new ApiResponse(ResponseType.OK, true);
} }
/// <summary> /// <summary>
......
...@@ -52,7 +52,7 @@ public class his_data ...@@ -52,7 +52,7 @@ public class his_data
public string PersonnelName { get; set; } public string PersonnelName { get; set; }
/// <summary> /// <summary>
///人员工号 /// 人员工号
/// </summary> /// </summary>
public string PersonnelNumber { get; set; } public string PersonnelNumber { get; set; }
...@@ -62,17 +62,22 @@ public class his_data ...@@ -62,17 +62,22 @@ public class his_data
public string SourceType { get; set; } public string SourceType { get; set; }
/// <summary> /// <summary>
///费用类型 /// 费用类型
/// </summary> /// </summary>
public string Category { get; set; } public string Category { get; set; }
/// <summary> /// <summary>
/// /// 原始分类
/// </summary>
public string Original { get; set; }
/// <summary>
/// 标准分类
/// </summary> /// </summary>
public string ItemName { get; set; } public string ItemName { get; set; }
/// <summary> /// <summary>
///费用 /// 费用
/// </summary> /// </summary>
public string Value { get; set; } public string Value { get; set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment