Commit 1a68d9df by Neo Turing

优化

parent 9cba4934
...@@ -32,5 +32,5 @@ using System.Runtime.InteropServices; ...@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.7160")] [assembly: AssemblyVersion("5.4.2024.11070")]
[assembly: AssemblyFileVersion("5.4.2023.7160")] [assembly: AssemblyFileVersion("5.4.2023.11070")]
\ No newline at end of file \ No newline at end of file
...@@ -287,6 +287,7 @@ namespace Kivii.EmailPools.Transforms ...@@ -287,6 +287,7 @@ namespace Kivii.EmailPools.Transforms
public class EmailPoolCancel : RestfulExecutionGeneric<EmailPool> public class EmailPoolCancel : RestfulExecutionGeneric<EmailPool>
{ {
public List<Guid> Kvids { get; set; } public List<Guid> Kvids { get; set; }
public bool IsDelete { get; set; } = false;
public override object OnExecutionGeneric<G>(IRequest req, IResponse res) public override object OnExecutionGeneric<G>(IRequest req, IResponse res)
{ {
...@@ -301,6 +302,14 @@ namespace Kivii.EmailPools.Transforms ...@@ -301,6 +302,14 @@ namespace Kivii.EmailPools.Transforms
foreach (var item in pools) foreach (var item in pools)
{ {
if (IsDelete)
{
item.Status = -1;
item.AddOnlyProperties(o => o.Status);
conn.UpdateOnly(item);
rtns.Results.Add(item);
continue;
}
if (item.IsSended) continue; if (item.IsSended) continue;
item.IsSended = true; item.IsSended = true;
item.AddOnlyProperties(o => o.IsSended); item.AddOnlyProperties(o => o.IsSended);
......
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