|
|
|
@ -1540,7 +1540,7 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
|
|
|
|
|
|
private static List<long> 执行中idList { get; set; } = new List<long>();
|
|
|
|
|
|
|
|
|
|
private static void 执行列表数() {
|
|
|
|
|
private static void 执行列表数(string name="") {
|
|
|
|
|
|
|
|
|
|
var docount = 0;
|
|
|
|
|
if (执行中idList != null)
|
|
|
|
@ -1554,13 +1554,21 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
logger.Debug($"执行列表数:{docount}");
|
|
|
|
|
logger.Debug($"执行列表数({name}):{docount};");
|
|
|
|
|
}
|
|
|
|
|
private static bool inworking { get; set; } = false;
|
|
|
|
|
public void 执行完成(long DJYID)
|
|
|
|
|
public static void 执行完成(long DJYID)
|
|
|
|
|
{
|
|
|
|
|
if (执行中idList != null && 执行中idList.Count > 0) {
|
|
|
|
|
|
|
|
|
|
if (执行中idList.Exists(x=>x== DJYID))
|
|
|
|
|
{
|
|
|
|
|
try {
|
|
|
|
|
执行中idList.RemoveAll(x => x == DJYID);
|
|
|
|
|
logger.Debug($"移除执行:{DJYID};");
|
|
|
|
|
} catch (Exception e2) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1969,27 +1977,8 @@ SELECT @ps_BillNo as N'billno'";
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
|
|
|
|
|
if (执行中idList.Exists(x=>x==head.Id))
|
|
|
|
|
{
|
|
|
|
|
try {
|
|
|
|
|
执行中idList.RemoveAll(x => x == head.Id);
|
|
|
|
|
} catch (Exception e2) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var docount1 = 0;
|
|
|
|
|
if (执行中idList != null)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
docount1 = 执行中idList.Count();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e1)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
logger.Debug($"执行列表数:{docount1}");
|
|
|
|
|
执行完成(head.Id);
|
|
|
|
|
执行列表数("完成");
|
|
|
|
|
//ThreadSaveDS6_Single.处理完成(head.Id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|