|
@@ -55,7 +55,7 @@ public class ResetSmallStoreHelper
|
|
|
index += 1;
|
|
|
int UserId = int.Parse(function.CheckInt(dr["UserId"].ToString()));
|
|
|
decimal ProfitAmount = decimal.Parse(function.CheckNum(dr[1].ToString()));
|
|
|
- var prelist = db.PreSendStockDetail.Select(m => new { m.Id, m.BrandId, m.ToUserId, m.Status, m.ApplyFlag }).Where(m => m.ToUserId == UserId && m.Status == 1 && m.ApplyFlag == 0);
|
|
|
+ var prelist = db.PreSendStockDetail.Select(m => new { m.Id, m.BrandId, m.ToUserId, m.Status, m.ApplyFlag }).Where(m => m.ToUserId == UserId && m.Status == 1 && m.ApplyFlag == 0).ToList();
|
|
|
foreach(var prepos in prelist)
|
|
|
{
|
|
|
if(prepos.BrandId == 1 || prepos.BrandId == 2 || prepos.BrandId == 4 || prepos.BrandId == 6 || prepos.BrandId == 7 || prepos.BrandId == 8)
|