Просмотр исходного кода

修复盟主储蓄金变动记录,兑换机具券显示

DuGuYang 3 лет назад
Родитель
Сommit
e68850df11

+ 17 - 0
Areas/Admin/Controllers/MainServer/LeaderReserveRecordController.cs

@@ -149,6 +149,23 @@ namespace MySystem.Areas.Admin.Controllers
                     }
                 }
 
+                //券码
+                int OrderId = int.Parse(function.CheckInt(dic["Id"].ToString()));
+                if (OrderId >= 2300)
+                {
+
+                    var info = db.UserSnDelayChange.Where(m => m.QueryCount == OrderId).ToList();
+                    var PosCoupons = "";
+                    foreach (var item in info)
+                    {
+                        PosCoupons += item.SnNo + ",";
+                    }
+                    dic["PosCoupons"] = PosCoupons;
+                }
+                else
+                {
+                    dic["PosCoupons"] = dic["SeoDescription"].ToString();
+                }
             }
             return Json(obj);
         }

+ 1 - 1
wwwroot/layuiadmin/modules_main/LeaderReserveRecord_Admin.js

@@ -104,7 +104,7 @@ layui.config({
             , { field: 'ChangeAmt', width: 200, title: '使用额度', sort: true }
             , { field: 'BeforeAmt', width: 200, title: '使用前剩余额度', sort: true }
             , { field: 'AfterAmt', width: 200, title: '使用后剩余额度', sort: true }
-            , { field: 'SeoDescription', width: 400, title: '券码', sort: true }
+            , { field: 'PosCoupons', width: 400, title: '券码', sort: true }
 
             // , { field: 'Sort', fixed: 'right', title: '排序', width: 80, edit: 'text' }
             // , { title: '操作', align: 'center', fixed: 'right', toolbar: '#table-list-tools' }