去除班前会提交限制
This commit is contained in:
parent
03363887c9
commit
0550847285
@ -251,20 +251,20 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
//meetingTime = DateTime.Parse("2023-06-15 06:30:00");
|
//meetingTime = DateTime.Parse("2023-06-15 06:30:00");
|
||||||
if (entity.START_TIME != DateTime.MinValue)
|
if (entity.START_TIME != DateTime.MinValue)
|
||||||
{
|
{
|
||||||
if (entity.ORG_ID == Guid.Parse("8b3c41aa-51b1-7ce9-1879-248a038c1b5c"))
|
//if (entity.ORG_ID == Guid.Parse("8b3c41aa-51b1-7ce9-1879-248a038c1b5c"))
|
||||||
{
|
//{
|
||||||
if (entity.START_TIME.AddMinutes(-30) >= meetingTime)
|
// if (entity.START_TIME.AddMinutes(-30) >= meetingTime)
|
||||||
{
|
// {
|
||||||
throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-30) + "后提交!");
|
// throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-30) + "后提交!");
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
if (entity.START_TIME.AddMinutes(-15) >= meetingTime)
|
// if (entity.START_TIME.AddMinutes(-15) >= meetingTime)
|
||||||
{
|
// {
|
||||||
throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-15) + "后提交!");
|
// throw new Exception("班前会议需等到" + entity.START_TIME.AddMinutes(-15) + "后提交!");
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user