@@ -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;