This commit is contained in:
@@ -52,7 +52,7 @@ namespace AyaNova.KPI
|
|||||||
|
|
||||||
|
|
||||||
JArray jData = new JArray();
|
JArray jData = new JArray();
|
||||||
string sMeta = string.Empty;
|
string sMeta = null;
|
||||||
|
|
||||||
#if (DEBUG && AYSHOWKPIQUERYINFO)
|
#if (DEBUG && AYSHOWKPIQUERYINFO)
|
||||||
System.Diagnostics.Stopwatch stopWatch = new System.Diagnostics.Stopwatch();
|
System.Diagnostics.Stopwatch stopWatch = new System.Diagnostics.Stopwatch();
|
||||||
@@ -133,11 +133,17 @@ namespace AyaNova.KPI
|
|||||||
throw new System.Exception("KPIFetcher:GetResponseAsync - unexpected failure see log");
|
throw new System.Exception("KPIFetcher:GetResponseAsync - unexpected failure see log");
|
||||||
}
|
}
|
||||||
|
|
||||||
return JObject.FromObject(new
|
if (!string.IsNullOrWhiteSpace(sMeta))
|
||||||
{
|
return JObject.FromObject(new
|
||||||
meta = JObject.Parse(sMeta),
|
{
|
||||||
data = jData
|
meta = JObject.Parse(sMeta),
|
||||||
});
|
data = jData
|
||||||
|
});
|
||||||
|
else
|
||||||
|
return JObject.FromObject(new
|
||||||
|
{
|
||||||
|
data = jData
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,9 +48,10 @@ namespace AyaNova.KPI
|
|||||||
GROUP BY x
|
GROUP BY x
|
||||||
ORDER BY x ASC
|
ORDER BY x ASC
|
||||||
) t";
|
) t";
|
||||||
_metaQuery = @"SELECT row_to_json(t) as res from (
|
_metaQuery = string.Empty;
|
||||||
select name from auser where id = 10
|
// @"SELECT row_to_json(t) as res from (
|
||||||
) t";
|
// select name from auser where id = 10
|
||||||
|
// ) t";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user