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