This commit is contained in:
2024-08-13 16:18:19 +08:00
parent f285bd6c82
commit 40f8e9bb2f
2 changed files with 6 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ public partial class EqpSparePartsInstockD : BaseEntity<string>
/// </summary>
public string? location_id { get; set; }
/// <summary>
/// 工具仓库id
/// </summary>
public string tool_warehouse_id { get; set; }
/// <summary>
/// 质保开始时间
/// </summary>

View File

@@ -73,7 +73,7 @@ namespace JNPF.TaskScheduler.Listener
TimeSpan ts1 = new TimeSpan(Convert.ToDateTime(now.ToString("yyyy-MM-dd HH:mm")).Ticks);
TimeSpan ts2 = new TimeSpan(Convert.ToDateTime(item.start_time.ToString("yyyy-MM-dd HH:mm")).Ticks);
TimeSpan ts3 = ts1.Subtract(ts2).Duration();
if ((ts3.TotalMinutes + offsetMinute) * 10 / 60 % (10 * (double)item.plan_cycle) == 0)
if (ts3.TotalMinutes * 10 / 60 % (10 * (double)item.plan_cycle) == 0)
{
tobeCreateTemplets.Add(item);
}