去除班前会提交限制

This commit is contained in:
何美荣 2026-05-18 10:40:14 +08:00
parent 03363887c9
commit 0550847285

View File

@ -251,20 +251,20 @@ namespace APT.FO.WebApi.Controllers.Api.FO
//meetingTime = DateTime.Parse("2023-06-15 06:30:00");
if (entity.START_TIME != DateTime.MinValue)
{
if (entity.ORG_ID == Guid.Parse("8b3c41aa-51b1-7ce9-1879-248a038c1b5c"))
{
if (entity.START_TIME.AddMinutes(-30) >= meetingTime)
{
throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-30) + "后提交!");
}
}
else
{
if (entity.START_TIME.AddMinutes(-15) >= meetingTime)
{
throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-15) + "后提交!");
}
}
//if (entity.ORG_ID == Guid.Parse("8b3c41aa-51b1-7ce9-1879-248a038c1b5c"))
//{
// if (entity.START_TIME.AddMinutes(-30) >= meetingTime)
// {
// throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-30) + "后提交!");
// }
//}
//else
//{
// if (entity.START_TIME.AddMinutes(-15) >= meetingTime)
// {
// throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-15) + "后提交!");
// }
//}
}
else
{