Browse Source

分润分新政

lcl 1 month ago
parent
commit
1b9e534985

+ 2 - 2
Util/HaoDa/ProfitAfterHelper.cs

@@ -191,7 +191,7 @@ namespace MySystem
                 int maxLevel = obj.MaxLevel; //最大等级
                 int maxFloor = obj.MaxFloor; //最大层级
                 decimal diffLevelProfit = 0;  //等级级差
-                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
+                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
                 decimal maxPercent = IsActive ? maxlevel.DebitPercents : maxlevel.Percents;
                 LogHelper.Instance.WriteLog("maxPercent:" + maxPercent + ";", "来客吧分润日志");
                 decimal maxLevelProfit = TotalAmount * maxPercent;
@@ -237,7 +237,7 @@ namespace MySystem
                         }
                         if (UserLevel <= maxLevel && UserLevel >= curLevel)
                         {
-                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == UserLevel && m.Version == 0); //获取当前等级参数
+                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == UserLevel && m.Version == 0); //获取当前等级参数
                             if (objlevel != null)
                             {
                                 decimal getLevelProfit = 0;  //等级分润

+ 2 - 2
Util/HaoDa/ProfitAfterNewHelper.cs

@@ -192,7 +192,7 @@ namespace MySystem
                 int maxLevel = obj.MaxLevel; //最大等级
                 int maxFloor = obj.MaxFloor; //最大层级
                 decimal diffLevelProfit = 0;  //等级级差
-                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
+                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
                 decimal maxPercent = IsActive ? maxlevel.DebitPercents : maxlevel.Percents;
                 LogHelper.Instance.WriteLog("maxPercent:" + maxPercent + ";", "来客吧分润日志");
                 decimal maxLevelProfit = TotalAmount * maxPercent;
@@ -238,7 +238,7 @@ namespace MySystem
                         }
                         if (UserLevel <= maxLevel && UserLevel >= curLevel)
                         {
-                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == UserLevel && m.Version == 1); //获取当前等级参数
+                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == UserLevel && m.Version == 1); //获取当前等级参数
                             if (objlevel != null)
                             {
                                 decimal getLevelProfit = 0;  //等级分润

+ 2 - 2
Util/HaoDa/ProfitBeforeHelper.cs

@@ -193,7 +193,7 @@ namespace MySystem
                 int maxLevel = obj.MaxLevel; //最大等级
                 int maxFloor = obj.MaxFloor; //最大层级
                 decimal diffLevelProfit = 0;  //等级级差
-                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
+                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
                 decimal maxPercent = IsActive ? maxlevel.DebitPercents : maxlevel.Percents;
                 LogHelper.Instance.WriteLog("maxPercent:" + maxPercent + ";", "来客吧分润日志");
                 decimal maxLevelProfit = TotalAmount * maxPercent;
@@ -239,7 +239,7 @@ namespace MySystem
                         }
                         if (UserLevel <= maxLevel && UserLevel >= curLevel)
                         {
-                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == UserLevel && m.Version == 0); //获取当前等级参数
+                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == UserLevel && m.Version == 0); //获取当前等级参数
                             if (objlevel != null)
                             {
                                 decimal getLevelProfit = 0;  //等级分润

+ 2 - 2
Util/HaoDa/ProfitBeforeNewHelper.cs

@@ -194,7 +194,7 @@ namespace MySystem
                 int maxLevel = obj.MaxLevel; //最大等级
                 int maxFloor = obj.MaxFloor; //最大层级
                 decimal diffLevelProfit = 0;  //等级级差
-                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
+                ProfitObjectLevels maxlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == 9) ?? new ProfitObjectLevels(); //获取最高等级参数
                 decimal maxPercent = IsActive ? maxlevel.DebitPercents : maxlevel.Percents;
                 LogHelper.Instance.WriteLog("maxPercent:" + maxPercent + ";", "来客吧分润日志");
                 decimal maxLevelProfit = TotalAmount * maxPercent;
@@ -240,7 +240,7 @@ namespace MySystem
                         }
                         if (UserLevel <= maxLevel && UserLevel >= curLevel)
                         {
-                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == UserLevel && m.Version == 1); //获取当前等级参数
+                            ProfitObjectLevels objlevel = db.ProfitObjectLevels.FirstOrDefault(m => m.LevelNumber == UserLevel && m.Version == 1); //获取当前等级参数
                             if (objlevel != null)
                             {
                                 decimal getLevelProfit = 0;  //等级分润