Commit dce4e258 by lcx

人事科提交判断条件修改

parent e99dbc90
......@@ -262,7 +262,7 @@ public ApiResponse SingleSave([FromBody]ag_workload_type request)
/// 删除二次绩效工作量类型
/// </summary>
/// <returns></returns>
[Route("api/second/single/delete")]
[Route("api/second/worktype/delete")]
[HttpPost]
public ApiResponse SingleDelete([CustomizeValidator(RuleSet = "Delete"), FromBody]WorkloadRequest request)
{
......
......@@ -254,7 +254,7 @@ public bool DeleteClinic(im_employee_clinic request)
public bool Audit(int allotId)
{
var allot = perforPerallotRepository.GetEntity(t => t.ID == allotId);
if (allot == null)
if (allot == null || !new List<int> { (int)AllotStates.GenerateSucceed, (int)AllotStates.Archive }.Contains(allot.States))
throw new PerformanceException("绩效信息错误");
allot.Generate = 1;
......
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