DuGuYang 2 yıl önce
ebeveyn
işleme
68af250cd1

+ 4 - 2
Areas/Admin/Controllers/MainServer/PreSendStockDetailController.cs

@@ -601,7 +601,7 @@ namespace MySystem.Areas.Admin.Controllers
                 Dictionary<string, object> Fields = new Dictionary<string, object>();
                 Fields.Add("Status", -1);
                 new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).Edit("PreSendStockDetail", Fields, id);
-                
+
                 string check = RedisDbconn.Instance.Get<string>("SmallStoreCancel:" + id);
                 if (!string.IsNullOrEmpty(check))
                 {
@@ -674,7 +674,9 @@ namespace MySystem.Areas.Admin.Controllers
                                 userAccount.ValidAmount -= amount;//扣减分仓可用额度
                             }
                         }
-                        // if(query)
+                        
+                        RedisDbconn.Instance.AddList("PreWithholdQueue", "{\"UserId\":\"" + query.ToUserId + "\",\"SnNo\":\"" + query.SnNo + "\"}");
+
                         string text = string.Format("创客-首页-仓库管理-小分仓-撤回,UserId: '" + query.FromUserId + "',ToUserId: '" + smallStoreHouse.UserId + "',LaveNum:'" + smallStoreHouse.LaveNum + "',TotalNum:'" + smallStoreHouse.TotalNum + "',ChangeCount:'" + 1 + "',Time'" + DateTime.Now + "'");
                         function.WriteLog(text, "smallstorehouse");//小分仓记录日志
                         if (smallStoreHouse.LaveNum > 10 || smallStoreHouse.TotalNum < 0)