Commit 31788b16 by 陶然

优化

parent 4029655e
......@@ -37,5 +37,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.3060")]
[assembly: AssemblyFileVersion("5.4.2024.3060")]
[assembly: AssemblyVersion("5.4.2024.10180")]
[assembly: AssemblyFileVersion("5.4.2024.10180")]
......@@ -430,6 +430,10 @@ namespace Kivii.Samples.Transforms
if (BizId.IsNullOrEmpty() && Tid.IsNullOrEmpty() && BizKvid == Guid.Empty) throw new Exception("请传入要查询的样品业务信息!");
var conn = KiviiContext.GetOpenedDbConnection<Sample>();
Sample rootSample = null;
var rtns = new RestfulExecutionResponse<Sample>();
rtns.Results = new List<Sample>();
//Guid sampleRootKvid = Guid.Empty;
if (BizKvid != Guid.Empty)
{
......@@ -471,10 +475,7 @@ namespace Kivii.Samples.Transforms
//sampleRootKvid = conn.Single<Guid>(querySampleRootKvid);
}
}
if (rootSample == null) throw new Exception("未找到指定样品信息!");
var rtns = new RestfulExecutionResponse<Sample>();
rtns.Results = new List<Sample>();
if (rootSample == null) return rtns;//throw new Exception("未找到指定样品信息!");
var querySample = conn.From<Sample>();
querySample.Where(o => o.OwnerKvid == OwnerKvid && o.RootKvid == rootSample.RootKvid && o.BizId == BizId && o.Type == SampleType.Node);//只查子样品
......
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