Commit 41accef4 by 李承祥

清除二次绩效数据代码调整

parent b875151f
......@@ -107,7 +107,7 @@ public ApiResponse Import([FromForm] IFormCollection form)
if (!againAllotService.Update(allot, againid))
return new ApiResponse(ResponseType.Fail, $"{file.FileName}上传成功,修改状态失败");
configService.ClearAgain(allot.ID);
configService.ClearAgain(againid);
configService.CopyAgain(allot.ID);
}
......
......@@ -74,7 +74,7 @@ public bool Generate(AgainAllotRequest request, UserIdentity user)
perforPeragainallotRepository.Update(againAllot, p => { p.States = 2; });
//清理二次绩效无用数据
configService.ClearAgain(againAllot.AllotID.Value);
configService.ClearAgain(againAllot.ID);
try
{
#region 基础信息
......
......@@ -400,13 +400,13 @@ public bool AgainDelete(CofAgainRequest request)
#endregion
/// <summary>
/// 清二次绩效中无效数据
/// 清二次绩效中无效数据
/// </summary>
/// <param name="againId"></param>
public void ClearAgain(int againId)
{
var count = _directorRepository.DelAgain(againId);
logdbug.Add(againId, "清二次绩效中无效数据", $"受影响行数:{count}");
logdbug.Add(againId, "清二次绩效中无效数据", $"受影响行数:{count}");
}
#region CopyAgain
......
......@@ -98,7 +98,7 @@ public bool Delete(EmployeeRequest request)
{
var employee = perforImemployeeRepository.GetEntity(t => t.ID == request.ID);
if (null == employee)
throw new PerformanceException($"ID不存在 :{request.ID}");
throw new PerformanceException("该人员不存在");
return perforImemployeeRepository.Remove(employee);
}
......
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