Commit 47850bbc by 陶然

优化

parent f3d32e90
......@@ -136,11 +136,27 @@ namespace Njhg.Third.Semir.Jobs
foreach (var order in semirs)
{
var thirdDetails = conn.Select<ThirdReportOrderDetail>(o => o.ThirdOrderKvid == order.Kvid);
if (thirdDetails.IsNullOrEmpty()) continue;
if (thirdDetails.IsNullOrEmpty())
{
skip++;
continue;
}
var reports = conn.SelectByIds<Report>(thirdDetails.ConvertAll(o => o.ReportKvid));
if (reports.IsNullOrEmpty()) continue;
if (reports.Exists(o => o.Status < (int)ReportStatusType.ReportIssue)) continue;
if (reports.Exists(o => o.TestJudgement=="不合格")) continue;
if (reports.IsNullOrEmpty())
{
skip++;
continue;
}
if (reports.Exists(o => o.Status < (int)ReportStatusType.ReportIssue))
{
skip++;
continue;
}
if (reports.Exists(o => o.TestJudgement == "不合格"))
{
skip++;
continue;
}
var result = instance.OnUploadThirdReport(order.Kvid);
if (result) successed++;
......
......@@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.1200")]
[assembly: AssemblyFileVersion("5.4.2024.1200")]
[assembly: AssemblyVersion("5.4.2024.2050")]
[assembly: AssemblyFileVersion("5.4.2024.2050")]
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