1移交子表状态判断逻辑调整

This commit is contained in:
2025-02-17 12:15:10 +08:00
parent 8039877553
commit d7504526a4
16 changed files with 64 additions and 63 deletions
@@ -359,16 +359,16 @@ namespace FineUIPro.Web.Transfer
continue;
}
//如果全是NA或Not Start 就是 Not Start
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
//如果全是NA或Not Start、空 就是 Not Start
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
{
model.FINAL_Status = "Not Start";
list.Add(model);
continue;
}
//如果其中有一项是In progress 或Not Start 是 In progress
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
//如果其中有一项是In progress、空 或Not Start 是 In progress
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
{
model.FINAL_Status = "In progress";
list.Add(model);