This commit is contained in:
wyw 2024-04-07 09:39:19 +08:00
parent 1a69b1d7db
commit 6fd28f19f6

View File

@ -2896,19 +2896,16 @@ namespace APT.BS.WebApi.Controllers.Api
}
else if (checkRecord.ISCHECK)
{
if (checkRecord.TaskID != Guid.Empty)
var task = GetEntity<T_FM_NOTIFICATION_TASK>(e => e.NOTICE_STATUS == 0 && e.SOURCE_DATA_ID == RecordID && e.USER_ID == LoginUserId && e.SOURCE_FORMCODE == "BS034");
if (task != null)
{
var task = GetEntity<T_FM_NOTIFICATION_TASK>(checkRecord.TaskID);
if (task != null)
task.NOTICE_STATUS = 1;
task.TASK_DT = DateTime.Now;
task.SOURCE_FORMCODE = "BS034_VIEW";
this.UnifiedCommit(() =>
{
task.NOTICE_STATUS = 1;
task.TASK_DT = DateTime.Now;
task.SOURCE_FORMCODE = "BS034_VIEW";
this.UnifiedCommit(() =>
{
UpdateEntityNoCommit(task);
});
}
UpdateEntityNoCommit(task);
});
}
throw new Exception("该检查确认单已经确认!");
}