下发去除删除操作

parent c67f9475
...@@ -706,13 +706,13 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList) ...@@ -706,13 +706,13 @@ public bool IssuedChangeSecond(per_allot allot, List<ag_secondallot> secondList)
} }
perforAgsecondallotRepository.UpdateRange(updSeconds.ToArray()); perforAgsecondallotRepository.UpdateRange(updSeconds.ToArray());
} }
if (promptSeconds.Any(t => t.IssueStatus == 1)) //if (promptSeconds.Any(t => t.IssueStatus == 1))
{ //{
//删除 // //删除
var delSecondQuery = promptSeconds.Where(t => t.IssueStatus == 1); // var delSecondQuery = promptSeconds.Where(t => t.IssueStatus == 1);
var delSecond = secondList.Where(w => delSecondQuery.Select(t => t.Id).Contains(w.Id)) ?? new List<ag_secondallot>(); // var delSecond = secondList.Where(w => delSecondQuery.Select(t => t.Id).Contains(w.Id)) ?? new List<ag_secondallot>();
perforAgsecondallotRepository.RemoveRange(delSecond.ToArray()); // perforAgsecondallotRepository.RemoveRange(delSecond.ToArray());
} //}
return true; return true;
} }
...@@ -746,7 +746,7 @@ public List<IssuedPromptResponse> GetChangeSecond(List<ag_secondallot> secondLis ...@@ -746,7 +746,7 @@ public List<IssuedPromptResponse> GetChangeSecond(List<ag_secondallot> secondLis
promptSecond.IssueStatus = 4; promptSecond.IssueStatus = 4;
promptSeconds.Add(promptSecond); promptSeconds.Add(promptSecond);
} }
else if (isDiffer && (item.PreRealGiveFee ?? 0) != 0) else if (isDiffer)
{ {
if (status.Contains(item.Status.Value)) if (status.Contains(item.Status.Value))
{ {
......
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