历史趋势添加色彩数组,工艺参数趋势轴修改

This commit is contained in:
dell
2023-08-25 17:30:45 +08:00
parent 8b307e203b
commit 28b59aa70e
6 changed files with 48 additions and 21 deletions

View File

@ -138,13 +138,13 @@ namespace HT.Cloud.Service.ReportManage
public async Task<string> GetAlarmRecordQuick(string HATYPE, string startdt, string enddt, string systemName)
{
var groupName = _context.AsTenant().QueryableWithAttr<MetaGroupEntity>().Where(x => x.GroupDescription == systemName).First().GroupName;
SugarParameter[] sqlParameters =
{
new SugarParameter("@HATYPE",HATYPE),
new SugarParameter("@Hstartdt",startdt),
new SugarParameter("@Henddt",enddt)
new SugarParameter("@Henddt",enddt),
new SugarParameter("@HGROUPNAME",groupName)
};
var dt = _context.AsTenant().GetConnection(dataDBNumber).Ado.UseStoredProcedure().GetDataTable("Query_Tag_Alarm_Count", sqlParameters);
@ -156,8 +156,10 @@ namespace HT.Cloud.Service.ReportManage
public async Task<string> GetAlarmRecordQuickDesc(string hhour, string systemName)
{
int Hhour = int.Parse(hhour);
var groupName = _context.AsTenant().QueryableWithAttr<MetaGroupEntity>().Where(x => x.GroupDescription == systemName).First().GroupName;
SugarParameter[] sqlParameters =
{
new SugarParameter("@HGROUPNAME",groupName),
new SugarParameter("@Hhour",Hhour)
};
var dt = _context.AsTenant().GetConnection(dataDBNumber).Ado.UseStoredProcedure().GetDataTable("Query_Tag_Alarm_History", sqlParameters);