尖峰平谷电价的时间区间校验修改

zw
xjl 5 months ago
parent bd67ba5a84
commit ca440d8608

@ -305,6 +305,8 @@ namespace WebStarter.Controllers.BasicConfig
bool notHasOverlap = true;
for (int i = 0; i < timePeriods.Count; i++)
{
if (timePeriods[i].StartHour != 0 && timePeriods[i].StartMinute != 0 && timePeriods[i].StartSecond != 0 && timePeriods[i].EndHour != 0 && timePeriods[i].EndMinute != 0 && timePeriods[i].EndSecond != 0)//排除开始和结束时间都是0点的不判断
{
for (int j = i + 1; j < timePeriods.Count; j++)
{
@ -315,6 +317,7 @@ namespace WebStarter.Controllers.BasicConfig
}
}
}
}
return notHasOverlap;
}

Loading…
Cancel
Save