Przeglądaj źródła

仓库调拨广电卡不处理额度

lcl 2 lat temu
rodzic
commit
4605d7229d
1 zmienionych plików z 10 dodań i 4 usunięć
  1. 10 4
      AppStart/ExcelHelper.cs

+ 10 - 4
AppStart/ExcelHelper.cs

@@ -460,8 +460,11 @@ namespace MySystem
                                         store.LaveNum -= OpStoreNum;
                                         store.OutNum += OpStoreNum;
                                         db.SaveChanges();
-                                        string SendData = "{\"Kind\":\"5\",\"Data\":{\"StoreId\":\"" + StoreId + "\",\"BrandId\":\"" + BrandId + "\",\"OpStoreNum\":\"" + OpStoreNum + "\"}}";
-                                        RedisDbconn.Instance.AddList("StoreApplyQueue", SendData);
+                                        if(BrandId != 14)
+                                        {
+                                            string SendData = "{\"Kind\":\"5\",\"Data\":{\"StoreId\":\"" + StoreId + "\",\"BrandId\":\"" + BrandId + "\",\"OpStoreNum\":\"" + OpStoreNum + "\"}}";
+                                            RedisDbconn.Instance.AddList("StoreApplyQueue", SendData);
+                                        }
                                     }
                                     foreach (string key in toStoreData.Keys)
                                     {
@@ -499,8 +502,11 @@ namespace MySystem
                                         store.TotalNum += OpStoreNum;
                                         store.LaveNum += OpStoreNum;
                                         db.SaveChanges();
-                                        string SendData = "{\"Kind\":\"5\",\"Data\":{\"StoreId\":\"" + StoreId + "\",\"BrandId\":\"" + BrandId + "\",\"OpStoreNum\":\"-" + OpStoreNum + "\"}}";
-                                        RedisDbconn.Instance.AddList("StoreApplyQueue", SendData);
+                                        if(BrandId != 14)
+                                        {
+                                            string SendData = "{\"Kind\":\"5\",\"Data\":{\"StoreId\":\"" + StoreId + "\",\"BrandId\":\"" + BrandId + "\",\"OpStoreNum\":\"-" + OpStoreNum + "\"}}";
+                                            RedisDbconn.Instance.AddList("StoreApplyQueue", SendData);
+                                        }
                                     }
                                     db.SaveChanges();
                                     tran.Commit();