parent
43b90759f8
commit
08a9d4462e
@ -0,0 +1,16 @@
|
||||
namespace Common.Util;
|
||||
|
||||
public class DateUtils
|
||||
{
|
||||
public static bool IsDateTimeToday(DateTime? dateTime)
|
||||
{
|
||||
if (dateTime == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
DateTime startOfToday = DateTime.Today;
|
||||
DateTime endOfToday = startOfToday.AddDays(1).AddTicks(-1);
|
||||
return dateTime >= startOfToday && dateTime <= endOfToday;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
using HybirdFrameworkCore.Autofac.Attribute;
|
||||
using Mapster;
|
||||
|
||||
namespace Service.Execute.Model;
|
||||
|
||||
public class DistributeTask
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// 0.无任务
|
||||
/// 1.换电任务
|
||||
/// 2.移舱任务
|
||||
/// 3.移出任务
|
||||
/// 4.移入任务
|
||||
/// 5.消防任务
|
||||
/// </summary>
|
||||
[Property(0, 16)]
|
||||
public ushort TaskNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入仓位选择
|
||||
/// </summary>
|
||||
[Property(16, 16)]
|
||||
public ushort InBinNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出仓仓位选择
|
||||
/// </summary>
|
||||
[Property(32, 16)]
|
||||
public ushort OutBinNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电池包类型 0
|
||||
/// </summary>
|
||||
[Property(48, 16)]
|
||||
public ushort BatteryPackType { get; set; }
|
||||
}
|
Loading…
Reference in new issue