Browse Source

清理依赖项时排除当前的业务号

master
yashen 7 years ago
parent
commit
1479850d5f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      B3WeChat/Rpcs/ApproveMessageRpc.cs

+ 2
- 1
B3WeChat/Rpcs/ApproveMessageRpc.cs View File

@ -128,12 +128,13 @@ namespace BWP.B3WeChat.Rpcs
}
[Rpc]
public static void CleanByDependOn(string dependOn)
public static void CleanByDependOn(string dependOn,string currentBusinessNo)
{
var context = CustomerUserContext.Current;
var del = new DQDeleteDom(typeof(ApproveMessage));
del.Where.Conditions.Add(DQCondition.EQ("DependOn", dependOn));
del.Where.Conditions.Add(DQCondition.EQ("CustomerCode", context.CustomerCode));
del.Where.Conditions.Add(DQCondition.InEQ("BusinessNo", currentBusinessNo));
del.EExecute();
}


Loading…
Cancel
Save