Commit 3474eae0 by Neo Turing

优化

parent 466ba6e8
...@@ -37,5 +37,5 @@ using System.Runtime.InteropServices; ...@@ -37,5 +37,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2025.4250")] [assembly: AssemblyVersion("5.4.2025.4290")]
[assembly: AssemblyFileVersion("5.4.2025.4250")] [assembly: AssemblyFileVersion("5.4.2025.4290")]
...@@ -438,7 +438,7 @@ namespace Kivii.Samples.Transforms ...@@ -438,7 +438,7 @@ namespace Kivii.Samples.Transforms
if (BizKvid != Guid.Empty) if (BizKvid != Guid.Empty)
{ {
var queryRootSample = conn.From<Sample>(); var queryRootSample = conn.From<Sample>();
queryRootSample.Where(o => o.BizKvid == BizKvid && o.Type == SampleType.Master); queryRootSample.Where(o => o.BizKvid == BizKvid && o.Category == "Report");
rootSample = conn.Single(queryRootSample); rootSample = conn.Single(queryRootSample);
if (rootSample != null) if (rootSample != null)
{ {
...@@ -454,7 +454,7 @@ namespace Kivii.Samples.Transforms ...@@ -454,7 +454,7 @@ namespace Kivii.Samples.Transforms
if (tidKvid != Guid.Empty) if (tidKvid != Guid.Empty)
{ {
var queryRootSample = conn.From<Sample>(); var queryRootSample = conn.From<Sample>();
queryRootSample.Where(o => o.BizKvid == tidKvid && o.Type == SampleType.Master); queryRootSample.Where(o => o.BizKvid == tidKvid && o.Category == "Report");
rootSample = conn.Single(queryRootSample); rootSample = conn.Single(queryRootSample);
if (rootSample != null) if (rootSample != null)
{ {
...@@ -466,7 +466,7 @@ namespace Kivii.Samples.Transforms ...@@ -466,7 +466,7 @@ namespace Kivii.Samples.Transforms
else if (!BizId.IsNullOrEmpty()) else if (!BizId.IsNullOrEmpty())
{ {
var queryRootSample = conn.From<Sample>(); var queryRootSample = conn.From<Sample>();
queryRootSample.Where(o => o.BizId == BizId && o.Type == SampleType.Master); queryRootSample.Where(o => o.BizId == BizId && o.Category == "Report");
queryRootSample.OrderBy(o => o.CreateTime); queryRootSample.OrderBy(o => o.CreateTime);
rootSample = conn.Single(queryRootSample); rootSample = conn.Single(queryRootSample);
//var querySampleRootKvid = conn.From<Sample>(); //var querySampleRootKvid = conn.From<Sample>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment