|
|
|
@ -148,6 +148,22 @@ namespace BWP.B3ClientService.Rpcs |
|
|
|
} |
|
|
|
return JsonConvert.SerializeObject(list); |
|
|
|
} |
|
|
|
|
|
|
|
[Rpc(RpcFlags.SkipAuth)] |
|
|
|
public static string StockUpScan(string barCode) |
|
|
|
{ |
|
|
|
var main = new JoinAlias(typeof(SegmentProductionInfo)); |
|
|
|
var goods = new JoinAlias(typeof(Goods)); |
|
|
|
var query = new DQueryDom(main); |
|
|
|
query.From.AddJoin(JoinType.Left, new DQDmoSource(goods), DQCondition.EQ(main, "Goods_ID", goods, "ID")); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("Code", goods)); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("Weight")); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("BarCode", barCode), DQCondition.EQ("IsDelete", false))); |
|
|
|
var result = query.EExecuteScalar<string, decimal?>(); |
|
|
|
if (result == null) |
|
|
|
return string.Empty; |
|
|
|
return JsonConvert.SerializeObject(new ExtensionObj { StringExt1 = result.Item1, DecimalExt1 = result.Item2 }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
class SegmentInStoreObj |
|
|
|
|