|
|
|
@ -22,9 +22,11 @@ namespace BWP.B3ClientService.Rpcs |
|
|
|
|
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static List<WordPair> GetWorkShopList(string input, string args, int top) |
|
|
|
public static string GetWorkShopList() |
|
|
|
{ |
|
|
|
return GetBaseInfoList<WorkShop>(input, args, top); |
|
|
|
var query = new DmoQuery(typeof(WorkShop)); |
|
|
|
var list = query.EExecuteList().Cast<WorkShop>().ToList(); |
|
|
|
return JsonConvert.SerializeObject(list); |
|
|
|
} |
|
|
|
|
|
|
|
[Rpc] |
|
|
|
@ -36,13 +38,11 @@ namespace BWP.B3ClientService.Rpcs |
|
|
|
} |
|
|
|
|
|
|
|
[Rpc] |
|
|
|
public static string GetProductBatchList(string input) |
|
|
|
public static string GetProductBatchList() |
|
|
|
{ |
|
|
|
//只查询5天前的批次
|
|
|
|
var query = new DmoQuery(typeof(ProductBatch)); |
|
|
|
if (!string.IsNullOrEmpty(input)) |
|
|
|
{ |
|
|
|
query.Where.Conditions.Add(DQCondition.Like("Name", input)); |
|
|
|
} |
|
|
|
query.Range=SelectRange.Top(5); |
|
|
|
var list = query.EExecuteList().Cast<ProductBatch>().ToList(); |
|
|
|
return JsonConvert.SerializeObject(list); |
|
|
|
} |
|
|
|
|