1
This commit is contained in:
parent
b5ed9d5218
commit
517584dc8e
@ -5572,7 +5572,10 @@ namespace APT.PP.WebApi.Controllers.Api
|
|||||||
if (sche != null)
|
if (sche != null)
|
||||||
{
|
{
|
||||||
var startTime = sche.START_TIME.AddHours(-1.5);
|
var startTime = sche.START_TIME.AddHours(-1.5);
|
||||||
exist = noticeExsiss.FirstOrDefault(t => t.APPLY_USER_ID == userInfo.ID && t.DEPARTMENT_TYPE == item.DepartType && t.CHECK_TYPE_ID == item.CheckTypeId && t.PLANCHECKFREQUENCY == item.Cycle && t.CREATE_TIME > startTime && (t.CREATE_TIME.Value.Date == dt.Date || t.CREATE_TIME.Value.Date == dt.AddDays(-1).Date));
|
if (sche.START_TIME.Date != sche.END_TIME.Date)
|
||||||
|
{
|
||||||
|
exist = noticeExsiss.FirstOrDefault(t => t.APPLY_DEPARTMENT_ID == userInfo.DEPARTMENT_ID && t.DEPARTMENT_TYPE == item.DepartType && t.CHECK_TYPE_ID == item.CheckTypeId && t.PLANCHECKFREQUENCY == item.Cycle && t.CREATE_TIME >= startTime && (t.CREATE_TIME.Value.Date == sche.START_TIME.Date || t.CREATE_TIME.Value.Date == sche.START_TIME.Date.AddDays(-1)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user