Commit f5e90828 by lcx

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

parent 35345a57
......@@ -165,18 +165,19 @@ public ApiResponse Import([FromForm] IFormCollection form)
_configService.Clear(allot.ID);
}
var email = _claim.GetUserClaim(JwtClaimTypes.Mail);
if (allot.States == (int)AllotStates.FileUploaded)
_backgroundTaskQueue.QueueBackgroundWorkItem(async token =>
{
using (var scope = _serviceScopeFactory.CreateScope())
{
var scopedServices = scope.ServiceProvider.GetRequiredService<AllotService>();
scopedServices.Generate(allot, _claim.GetUserClaim(JwtClaimTypes.Mail));
scopedServices.Generate(allot, email);
await Task.Delay(TimeSpan.FromSeconds(5), token);
}
});
return new ApiResponse(ResponseType.OK);
return new ApiResponse(ResponseType.OK, true);
}
/// <summary>
......
......@@ -52,7 +52,7 @@ public class his_data
public string PersonnelName { get; set; }
/// <summary>
///人员工号
/// 人员工号
/// </summary>
public string PersonnelNumber { get; set; }
......@@ -62,17 +62,22 @@ public class his_data
public string SourceType { get; set; }
/// <summary>
///费用类型
/// 费用类型
/// </summary>
public string Category { get; set; }
/// <summary>
///
/// 原始分类
/// </summary>
public string Original { get; set; }
/// <summary>
/// 标准分类
/// </summary>
public string ItemName { get; set; }
/// <summary>
///费用
/// 费用
/// </summary>
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