From 64af7d433b94ee9198eea6a1ea667727802130a8 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Fri, 8 Sep 2017 22:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3ClientService/Rpcs/BaseInfoRpc.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/B3ClientService/Rpcs/BaseInfoRpc.cs b/B3ClientService/Rpcs/BaseInfoRpc.cs index 3de965f..4422fd8 100644 --- a/B3ClientService/Rpcs/BaseInfoRpc.cs +++ b/B3ClientService/Rpcs/BaseInfoRpc.cs @@ -39,7 +39,8 @@ namespace BWP.B3ClientService.Rpcs var query = new DQueryDom(new JoinAlias(typeof(T))); if (top > 50) top = 50; - query.Range = SelectRange.Top(top); + if (top >= 0) + query.Range = SelectRange.Top(top); query.Columns.Add(DQSelectColumn.Field("ID")); query.Columns.Add(DQSelectColumn.Field("Name")); if (!string.IsNullOrEmpty(input)) @@ -111,14 +112,14 @@ namespace BWP.B3ClientService.Rpcs public static List GetFarmerList(string input, string args, int top) { return GetBaseInfoList(input, args, top); - } - + } + [Rpc] public static List GetHogGradeList(string input, string args, int top) { return GetBaseInfoList(input, args, top); } - + [Rpc] public static List GetLiveColonyHouseList(string input, string args, int top) { @@ -131,7 +132,7 @@ namespace BWP.B3ClientService.Rpcs var dmo = new DmoQuery(typeof(Sanction)); return dmo.EExecuteList().Cast().ToList(); } - + [Rpc] public static List GetLiveVarietiesList(string input, string args, int top) {