|
|
|
@ -74,6 +74,16 @@ namespace BWP.B3WeChat.Rpcs |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static string[] GetCustomerCodes() |
|
|
|
{ |
|
|
|
var query = new DQueryDom(new JoinAlias(typeof(CustomerUser))); |
|
|
|
query.Where.Conditions.Add(DQCondition.EQ("OpenID", WeChatUserContext.Current.OpenID)); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("CustomerCode")); |
|
|
|
query.Distinct = true; |
|
|
|
return query.EExecuteList<string>().ToArray(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |