fix 修复已知问题

This commit is contained in:
2024-08-19 14:17:15 +08:00
parent e99e7a01ee
commit 9c5d1b558f
5 changed files with 14 additions and 8 deletions

View File

@@ -34,14 +34,14 @@ public class BusinessTripEntity : SugarBaseEntity
/// <summary>
/// 开始时间
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "time")]
public TimeOnly BeginDateTime { get; set; }
[SugarColumn(IsNullable = true, ColumnDataType = "time")]
public TimeOnly? BeginDateTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
[SugarColumn(IsNullable = false, ColumnDataType = "time")]
public TimeOnly EndDateTime { get; set; }
[SugarColumn(IsNullable = true, ColumnDataType = "time")]
public TimeOnly? EndDateTime { get; set; }
/// <summary>
/// 出差类型

View File

@@ -41,13 +41,13 @@ public class SapBusinessTripInfoItem
/// 开始时间
/// </summary>
[JsonProperty("OV_BEGUZ")]
public TimeOnly BeginDateTime { get; set; }
public TimeOnly? BeginDateTime { get; set; }
/// <summary>
/// 结束时间
/// </summary>
[JsonProperty("OV_ENDUZ")]
public TimeOnly EndDateTime { get; set; }
public TimeOnly? EndDateTime { get; set; }
/// <summary>
/// 出差类型

View File

@@ -95,4 +95,9 @@ public class DeviceTaskAssignmentResponse
return LastHeartbeatTime.AddSeconds(HeartbeatInterval) < DateTime.Now;
}
}
/// <summary>
/// 创建人
/// </summary>
public int CreateBy { get; set; }
}

View File

@@ -70,6 +70,7 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
LastHeartbeatTime = deviceRegistry.LastHeartbeatTime,
HeartbeatInterval = device.HeartbeatInterval,
DeployPlace = device.DeployPlace,
CreateBy = deviceTask.CreatedBy
})
.ToPageListAsync(request);

View File

@@ -143,7 +143,7 @@ public class MenuService : IMenuService
if (!allCodes.Any())
{
//todo 管理员
if (_currentUser.GetName() == "admin")
if (_currentUser.GetIntSubjectId() == 1)
{
return await GetListAsync(PlatformEnumType.PCAdmin);
}