|
|
|
@ -4,7 +4,9 @@ using Entity.Ammeter;
|
|
|
|
|
using Entity.Api.Resp;
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
|
|
|
|
|
using Service.Ammeter;
|
|
|
|
|
using Service.FireControl.Client;
|
|
|
|
|
using Service.Station;
|
|
|
|
|
|
|
|
|
|
namespace WebStarter.Controllers.Ammeter
|
|
|
|
@ -274,6 +276,17 @@ namespace WebStarter.Controllers.Ammeter
|
|
|
|
|
await QueryParameterTime(resp, endTime);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (resp != null)//添加主控柜电表
|
|
|
|
|
{
|
|
|
|
|
EmeterResp EmeterResp = new EmeterResp();
|
|
|
|
|
EmeterResp.Code = "主控柜";
|
|
|
|
|
EmeterResp.Value = FireControlMgr.Power;
|
|
|
|
|
EmeterResp.Type = 1;
|
|
|
|
|
EmeterResp.UploadTime=DateTime.Now;
|
|
|
|
|
|
|
|
|
|
resp.emeterEnergyChange.Add(EmeterResp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Result<EmeterEnergyResp>.Success(resp, "成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|