|
|
@ -534,7 +534,7 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
return id; |
|
|
return id; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Rpc] |
|
|
|
|
|
|
|
|
[Rpc(RpcFlags.SkipAuth)] |
|
|
public static string GetHurryRecord(long id) |
|
|
public static string GetHurryRecord(long id) |
|
|
{ |
|
|
{ |
|
|
var query = new DmoQuery(typeof(HurryRecord)); |
|
|
var query = new DmoQuery(typeof(HurryRecord)); |
|
|
@ -542,7 +542,7 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
var entity = query.EExecuteScalar<HurryRecord>(); |
|
|
var entity = query.EExecuteScalar<HurryRecord>(); |
|
|
if (entity == null) |
|
|
if (entity == null) |
|
|
throw new Exception(string.Format("急宰单No.{0} 已被删除", id)); |
|
|
throw new Exception(string.Format("急宰单No.{0} 已被删除", id)); |
|
|
return serializer.Serialize(entity); |
|
|
|
|
|
|
|
|
return JsonConvert.SerializeObject(entity); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Rpc] |
|
|
[Rpc] |
|
|
@ -697,8 +697,7 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
[Rpc(RpcFlags.SkipAuth)] |
|
|
[Rpc(RpcFlags.SkipAuth)] |
|
|
public static long InsertByHurryRecord(string insert, long hurryID) |
|
|
public static long InsertByHurryRecord(string insert, long hurryID) |
|
|
{ |
|
|
{ |
|
|
insert = insert.ESerializeDateTime(); |
|
|
|
|
|
var entity = serializer.Deserialize<OrderDetail>(insert); |
|
|
|
|
|
|
|
|
var entity = JsonConvert.DeserializeObject<OrderDetail>(insert); |
|
|
using (var session = Dmo.NewSession()) |
|
|
using (var session = Dmo.NewSession()) |
|
|
{ |
|
|
{ |
|
|
CheckCanInsert(session, entity.Order, entity.Date.Value); |
|
|
CheckCanInsert(session, entity.Order, entity.Date.Value); |
|
|
|