临时取消提示

This commit is contained in:
何美荣 2026-05-24 18:26:55 +08:00
parent cfb465f9f3
commit e5db67475e

View File

@ -353,8 +353,8 @@ namespace APT.FO.WebApi.Controllers
//if (monitorFileList == null || !monitorFileList.Any())
// throw new Exception("必须上传完工验收附件");
var detailNeed = detailList.FirstOrDefault(t => (t.JOB_STEP == FOJobStepEnum.Ing && t.IS_CONFIRM_NEW == false) || (t.JOB_STEP == FOJobStepEnum.After && t.IS_CONFIRM_NEW == false));
if (detailNeed != null)
throw new Exception("作业中或作业后未全部确认!");
//if (detailNeed != null)
// throw new Exception("作业中或作业后未全部确认!");
//作业前不删
var noDeleteIds = detailInfos.Where(t => t.JOB_STEP == FOJobStepEnum.Pre).Select(t => t.ID).ToList();
detailIds = detailIds.Where(t => !noDeleteIds.Contains(t)).ToList();