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) {