Browse Source

修改。

master
yibo 8 years ago
parent
commit
64af7d433b
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      B3ClientService/Rpcs/BaseInfoRpc.cs

+ 6
- 5
B3ClientService/Rpcs/BaseInfoRpc.cs View File

@ -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<WordPair> GetFarmerList(string input, string args, int top)
{
return GetBaseInfoList<Farmer>(input, args, top);
}
}
[Rpc]
public static List<WordPair> GetHogGradeList(string input, string args, int top)
{
return GetBaseInfoList<HogGrade>(input, args, top);
}
[Rpc]
public static List<WordPair> 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<Sanction>().ToList();
}
[Rpc]
public static List<WordPair> GetLiveVarietiesList(string input, string args, int top)
{


Loading…
Cancel
Save