|
|
@ -6,6 +6,8 @@ using PVDEMCS.Services.Repositories;
|
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
using PVDEMCS.Common.Constant;
|
|
|
|
using PVDEMCS.Common.Constant;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using PVDEMCS.Common.Tools;
|
|
|
|
|
|
|
|
using PVDEMCS.Services.Repositories.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PVDEMCS.Services.Impl
|
|
|
|
namespace PVDEMCS.Services.Impl
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -149,6 +151,27 @@ namespace PVDEMCS.Services.Impl
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 根据设备Id获取记录统计
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="equipmentId">设备Id</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
public Result<EquipmentRecordTotal> GetEquipmentRecordTotalDetail(string equipmentId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var result = new Result<EquipmentRecordTotal>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var value = this._equipmentRecordRepository.GetEquipmentRecordTotalDetail(equipmentId);
|
|
|
|
|
|
|
|
if (!value.IsSuccess)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
result.Message = value.Message;
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
result.Content = ModelTools.PubClone<EquipmentRecordTotalEntity, EquipmentRecordTotal>.Trans(value.Content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 获取设备状态记录月统计
|
|
|
|
/// 获取设备状态记录月统计
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|