From a6ba4d08b90a9bdf9f139028f854994ca11f9455 Mon Sep 17 00:00:00 2001 From: yashen Date: Fri, 3 Mar 2017 16:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=97=E5=88=B0=E5=AE=A2=E6=88=B7=E5=8F=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=97=B6=E6=8E=92=E9=99=A4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=92=8C=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3WeChat/Rpcs/WeChatUserRpc.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/B3WeChat/Rpcs/WeChatUserRpc.cs b/B3WeChat/Rpcs/WeChatUserRpc.cs index 9829b3b..d30e4d1 100644 --- a/B3WeChat/Rpcs/WeChatUserRpc.cs +++ b/B3WeChat/Rpcs/WeChatUserRpc.cs @@ -79,6 +79,8 @@ namespace BWP.B3WeChat.Rpcs { var query = new DQueryDom(new JoinAlias(typeof(CustomerUser))); query.Where.Conditions.Add(DQCondition.EQ("OpenID", WeChatUserContext.Current.OpenID)); + query.Where.Conditions.Add(DQCondition.InEQ("CustomerCode", "0")); + query.Where.Conditions.Add(DQCondition.Not(DQCondition.Like("CustomerCode", "%TEST"))); query.Columns.Add(DQSelectColumn.Field("CustomerCode")); query.Distinct = true; return query.EExecuteList().ToArray();