|
|
@ -83,6 +83,17 @@ namespace BWP.B3ClientService.Rpcs |
|
|
query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode)); |
|
|
query.Where.Conditions.Add(DQCondition.EQ("BarCode", barCode)); |
|
|
return query.EExecuteScalar<long?>(session); |
|
|
return query.EExecuteScalar<long?>(session); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Rpc(RpcFlags.SkipAuth)] |
|
|
|
|
|
public static string CheckInStored(string codeList) |
|
|
|
|
|
{ |
|
|
|
|
|
var list = JsonConvert.DeserializeObject<List<string>>(codeList); |
|
|
|
|
|
var query = new DQueryDom(new JoinAlias(typeof(SegmentProductionInfo))); |
|
|
|
|
|
query.Columns.Add(DQSelectColumn.Field("BarCode")); |
|
|
|
|
|
query.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("BarCode"), list.Select(x => DQExpression.Value(x)).ToArray())); |
|
|
|
|
|
query.Where.Conditions.Add(DQCondition.IsNotNull(DQExpression.Field("InStoreTime"))); |
|
|
|
|
|
return JsonConvert.SerializeObject(query.EExecuteList<string>()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class SegmentProductionMin |
|
|
class SegmentProductionMin |
|
|
|