|
@@ -206,14 +206,18 @@ public class VirtualApplyHelper
|
|
|
store.LaveNum -= 1;
|
|
|
store.OutNum += 1;
|
|
|
|
|
|
- pos.OrderId = OrderId;
|
|
|
- pos.BuyUserId = ToUserId;
|
|
|
- pos.UserId = ToUserId;
|
|
|
- pos.TransferTime = DateTime.Now;
|
|
|
- pos.RecycEndDate = RecycEndDate; // 循环结束时间
|
|
|
- pos.PosSnType = order.QueryCount;
|
|
|
- pos.LeaderUserId = LeaderUserId;
|
|
|
- pos.OpId = BigPosCouponKind;
|
|
|
+ PosMachinesTwo editPos = maindb.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
|
|
|
+ if(editPos != null)
|
|
|
+ {
|
|
|
+ pos.OrderId = OrderId;
|
|
|
+ pos.BuyUserId = ToUserId;
|
|
|
+ pos.UserId = ToUserId;
|
|
|
+ pos.TransferTime = DateTime.Now;
|
|
|
+ pos.RecycEndDate = RecycEndDate; // 循环结束时间
|
|
|
+ pos.PosSnType = order.QueryCount;
|
|
|
+ pos.LeaderUserId = LeaderUserId;
|
|
|
+ pos.OpId = BigPosCouponKind;
|
|
|
+ }
|
|
|
|
|
|
maindb.SaveChanges();
|
|
|
SnIndex += 1;
|