瀏覽代碼

设置机具费率标记并推送消息队列,统一读取品牌Id

lcl 2 年之前
父節點
當前提交
71489a766e
共有 1 個文件被更改,包括 1 次插入11 次删除
  1. 1 11
      AppStart/Helper/SetFeeFlagService.cs

+ 1 - 11
AppStart/Helper/SetFeeFlagService.cs

@@ -37,17 +37,7 @@ namespace MySystem
                         {
                             function.WritePage("/Fee/", "check" + DateTime.Now.ToString("yyyy-MM-dd") + ".txt", DateTime.Now.ToString("HH:mm:ss"));
                             WebCMSEntities db = new WebCMSEntities();
-                            List<int> BrandIds = new List<int>();
-                            BrandIds.Add(1);
-                            BrandIds.Add(2);
-                            BrandIds.Add(3);
-                            BrandIds.Add(4);
-                            BrandIds.Add(5);
-                            BrandIds.Add(7);
-                            BrandIds.Add(8);
-                            BrandIds.Add(9);
-                            BrandIds.Add(10);
-                            BrandIds.Add(11);
+                            List<int> BrandIds = db.KqProducts.Where(m => m.Status > 0).ToList().Select(m => m.Id).ToList();
                             var date = DateTime.Now.AddDays(-118);
                             bool op = true;
                             int StartId = 0;