odf_new/server/ZR.Model/Business/Dto/OdfCableFaultsDto.cs
zpc a5039edcbb
Some checks are pending
continuous-integration/drone/push Build is running
feat: 添加表显里程矫正功能和故障频次管理
- 在故障添加页面新增表显里程矫正输入框
- 在故障详情页面显示表显里程矫正信息
- 实现故障频次增加功能,允许用户通过按钮增加故障发生频次
- 更新后端服务以支持故障频次的增减和相关数据的返回
2026-03-28 23:17:34 +08:00

98 lines
2.4 KiB
C#

using Microsoft.AspNetCore.Http;
using MiniExcelLibs.Attributes;
namespace ZR.Model.Business.Dto
{
/// <summary>
/// 干线故障查询对象
/// </summary>
public class OdfCableFaultsQueryDto : PagerInfo
{
public int? CableId { get; set; }
/// <summary>
/// 故障时间范围 - 开始
/// </summary>
public DateTime? BeginFaultTime { get; set; }
/// <summary>
/// 故障时间范围 - 结束
/// </summary>
public DateTime? EndFaultTime { get; set; }
public string FaultReason { get; set; }
}
/// <summary>
/// 新增故障输入对象(含图片上传)
/// </summary>
public class OdfCableFaultAddDto
{
public int CableId { get; set; }
public string FaultTime { get; set; }
public string Personnel { get; set; }
public string FaultReason { get; set; }
public string Mileage { get; set; }
public string MileageCorrection { get; set; }
public string Location { get; set; }
public decimal Latitude { get; set; }
public decimal Longitude { get; set; }
public string Remark { get; set; }
public long? UserId { get; set; }
public IFormFile[] Images { get; set; }
}
/// <summary>
/// 干线故障导入对象(列头与导出一致)
/// </summary>
public class OdfCableFaultImportDto
{
[ExcelColumnName("编号")]
public int? Id { get; set; }
[ExcelColumnName("光缆编号")]
public int? CableId { get; set; }
[ExcelColumnName("故障时间")]
public DateTime? FaultTime { get; set; }
[ExcelColumnName("人员")]
public string Personnel { get; set; }
[ExcelColumnName("故障原因")]
public string FaultReason { get; set; }
[ExcelColumnName("表显故障里程")]
public string Mileage { get; set; }
[ExcelColumnName("地点")]
public string Location { get; set; }
[ExcelColumnName("纬度")]
public decimal? Latitude { get; set; }
[ExcelColumnName("经度")]
public decimal? Longitude { get; set; }
[ExcelColumnName("备注")]
public string Remark { get; set; }
[ExcelColumnName("创建时间")]
public DateTime? CreatedAt { get; set; }
[ExcelColumnName("所属光缆")]
public string CableName { get; set; }
}
}