Browse Source

增加得到客服编号的Rpc接口

master
yashen 8 years ago
parent
commit
92234d9405
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      B3WeChat/Rpcs/WeChatUserRpc.cs

+ 10
- 0
B3WeChat/Rpcs/WeChatUserRpc.cs View File

@ -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();
}
}
}

Loading…
Cancel
Save