“DuGuYang” 4 лет назад
Родитель
Сommit
817178a267

+ 11 - 2
Areas/Admin/Controllers/MainServer/StoreMachineApplyController.cs

@@ -460,6 +460,7 @@ namespace MySystem.Areas.Admin.Controllers
                 string SnNo = itemJson.Contains("\"A\"") ? dr["A"].ToString() : "";
                 string Brand = itemJson.Contains("\"B\"") ? dr["B"].ToString() : "";
                 BrandId = Convert.ToInt32(Brand);
+
                 if (BrandId == 1) FromStoreId = 7;
                 if (BrandId == 2) FromStoreId = 721;
                 if (BrandId == 3) FromStoreId = 697;
@@ -467,6 +468,8 @@ namespace MySystem.Areas.Admin.Controllers
                 if (BrandId == 5) FromStoreId = 775;
                 if (BrandId == 6) FromStoreId = 871;
                 if (BrandId == 7) FromStoreId = 1047;
+                if (BrandId == 8) FromStoreId = 4831;
+                if (BrandId == 9) FromStoreId = 4832;
                 PosMachinesTwo posMachinesTwo = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == SnNo && m.StoreId == FromStoreId);
                 if (posMachinesTwo == null)
                 {
@@ -497,6 +500,8 @@ namespace MySystem.Areas.Admin.Controllers
                 if (BrandId == 5) FromStoreId = 775;
                 if (BrandId == 6) FromStoreId = 871;
                 if (BrandId == 7) FromStoreId = 1047;
+                if (BrandId == 8) FromStoreId = 4831;
+                if (BrandId == 9) FromStoreId = 4832;
                 tostore = db.StoreHouse.FirstOrDefault(m => m.UserId == apply.UserId && m.BrandId == BrandId.ToString());
                 SendInfo item = sendInfos.FirstOrDefault(m => m.FromStoreId == FromStoreId && m.ToStoreId == tostore.Id && m.BrandId == BrandId);
                 if (item == null)
@@ -625,7 +630,8 @@ namespace MySystem.Areas.Admin.Controllers
                             UserAccount userAccount = db.UserAccount.FirstOrDefault(m => m.UserId == apply.UserId);
                             var Amounts = Convert.ToUInt32(item.Num) * 300;
                             var Amount = (num - Convert.ToUInt32(item.Num)) * 300;
-                            userAccount.FixedAmount += Amount;
+                            // userAccount.FixedAmount += Amount;
+                            userAccount.ValidAmount += Amount;//可用额度操作
                             apply.UseAmount += Amounts;
                         }
                         if (kqProducts.Name.Contains("电签"))
@@ -633,7 +639,8 @@ namespace MySystem.Areas.Admin.Controllers
                             UserAccount userAccount = db.UserAccount.FirstOrDefault(m => m.UserId == apply.UserId);
                             var Amounts = Convert.ToUInt32(item.Num) * 200;
                             var Amount = (num - Convert.ToUInt32(item.Num)) * 200;
-                            userAccount.FixedAmount += Amount;
+                            // userAccount.FixedAmount += Amount;
+                            userAccount.ValidAmount += Amount;//可用额度操作
                             apply.UseAmount += Amounts;
                         }
                     }
@@ -701,6 +708,8 @@ namespace MySystem.Areas.Admin.Controllers
                 storeSH.LaveNum += item.Num;
                 storeSH.TotalNum += item.Num;
             }
+            apply.SeoTitle = SysUserName +'-'+ SysRealName;//添加操作人信息
+            
             db.SaveChanges();
             new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).Edit("StoreMachineApply", Fields, data.Id);
 

+ 2 - 2
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -1236,7 +1236,7 @@ namespace MySystem.Areas.Admin.Controllers
             {
                 CreateDate = DateTime.Now,
                 UpdateDate = DateTime.Now,
-                CreateMan = SysUserName,
+                CreateMan = SysUserName + "-" + SysRealName,
                 ChangeNo = ChangeNo, //转换单号
                 UserId = 0, //创客
                 ChangeTime = DateTime.Now, //转换时间
@@ -1323,7 +1323,7 @@ namespace MySystem.Areas.Admin.Controllers
                 {
                     CreateDate = DateTime.Now,
                     UpdateDate = DateTime.Now,
-                    CreateMan = SysUserName,
+                    CreateMan = SysUserName + "-" + SysRealName,
                     ChangeNo = ChangeNo, //订单号
                     ChangeId = add.Id, //订单Id
                     BackProductType = oldpos.BrandId, //退回产品类型

+ 23 - 2
Areas/Admin/Controllers/MainServer/UsersController.cs

@@ -1264,6 +1264,9 @@ namespace MySystem.Areas.Admin.Controllers
                 dic["JCountwd"] = Convert.ToInt32(Info["JCountwd"].ToString());
                 dic["YAmtwd"] = Convert.ToDecimal(Info["YAmtwd"].ToString());
 
+                dic["BCount"] = Info["BCount"].ToString();
+                dic["ACount"] = Info["ACount"].ToString();
+
             }
             return Json(obj);
         }
@@ -1282,12 +1285,12 @@ namespace MySystem.Areas.Admin.Controllers
             {
                 condition += " and UserId =" + UserId;
             }
-            //创客Id
+            //开始时间
             if (!string.IsNullOrEmpty(sTradeDate))
             {
                 condition += " and TradeDate >=" + Convert.ToInt32(sTradeDate);
             }
-            //创客Id
+            //结束时间
             if (!string.IsNullOrEmpty(eTradeDate))
             {
                 condition += " and TradeDate <=" + Convert.ToInt32(eTradeDate);
@@ -1309,6 +1312,9 @@ namespace MySystem.Areas.Admin.Controllers
             int JCountwd = 0;
             decimal YAmtwd = 0;
 
+            int BCount = 0;
+            int ACount = 0;
+
             WebCMSEntities db = new WebCMSEntities();
             Dictionary<string, object> obj = new Dictionary<string, object>();
             DataTable dt = OtherMySqlConn.dtable("select Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt) from TradeDaySummary where QueryCount=0 and SeoTitle='team'"+ condition);
@@ -1373,6 +1379,18 @@ namespace MySystem.Areas.Admin.Controllers
                 YAmtwd = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
             }
 
+            // dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'"+ condition);
+            // if (dt.Rows.Count > 0)
+            // {
+            //     BCount = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
+            // }
+
+            // dt = OtherMySqlConn.dtable("select Sum(NotHelpNonDirectTradeAmt) from TradeDaySummary where QueryCount=1 and SeoTitle='team'"+ condition);
+            // if (dt.Rows.Count > 0)
+            // {
+            //     ACount = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
+            // }
+
             obj.Add("TotalAmtfc", TotalAmtfc);
             obj.Add("DAmtfc", DAmtfc);
             obj.Add("JAmtfc", JAmtfc);
@@ -1386,6 +1404,9 @@ namespace MySystem.Areas.Admin.Controllers
             obj.Add("JfAmtwd", JfAmtwd);
             obj.Add("JCountwd", JCountwd);
             obj.Add("YAmtwd", YAmtwd);
+
+            obj.Add("BCount", BCount);
+            obj.Add("ACount", ACount);
             db.Dispose();
             return obj;
         }

+ 18 - 0
Areas/Admin/Views/MainServer/PosMachinesTwo/Index.cshtml

@@ -87,6 +87,20 @@
                             </select>
                         </div>
                     </div>
+                    <div class="layui-inline">
+                        <label class="layui-form-label">激活时间</label>
+                        <div class="layui-input-inline">
+                            <input class="layui-input" type="text" readonly name="ActivationDateData" id="ActivationTime"
+                                placeholder="激活时间" autocomplete="off">
+                        </div>
+                    </div>
+                    <div class="layui-inline">
+                        <label class="layui-form-label">绑定时间</label>
+                        <div class="layui-input-inline">
+                            <input class="layui-input" type="text" readonly name="BindingDateData" id="BindingTime"
+                                placeholder="绑定时间" autocomplete="off">
+                        </div>
+                    </div>
                     @{Dictionary<string, string> ProfitObjectsActivesDic = new MySystem.DictionaryClass().getKqProductBrandDic();}
                     <div class="layui-inline">
                         <label class="layui-form-label">品牌</label>
@@ -125,6 +139,10 @@
                     {
                         <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
                     }
+                    @if (RightInfo.Contains("," + right + "_Home,"))
+                    {
+                        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="home"><i class="layui-icon layui-icon-edit"></i>一键归位</a>
+                    }
                 </script>
             </div>
         </div>

+ 28 - 0
Models/LeaderReserveRecord.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models
+{
+    public partial class LeaderReserveRecord
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public int ChangeType { get; set; }
+        public int OrderId { get; set; }
+        public int SourceUserId { get; set; }
+        public string Remark { get; set; }
+        public decimal AfterAmt { get; set; }
+        public decimal BeforeAmt { get; set; }
+        public decimal ChangeAmt { get; set; }
+        public string TradeDate { get; set; }
+        public string TradeMonth { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 1 - 0
Models/Orders.cs

@@ -63,5 +63,6 @@ namespace MySystem.Models
         public string RealName { get; set; }
         public string OrderNo { get; set; }
         public int UserId { get; set; }
+        public int ParentOrderId { get; set; }
     }
 }

+ 1 - 0
Models/PosMachinesTwo.cs

@@ -45,5 +45,6 @@ namespace MySystem.Models
         public int BindingState { get; set; }
         public int LeaderUserId { get; set; }
         public int PreUserId { get; set; }
+        public int IsFirst { get; set; }
     }
 }

+ 21 - 0
Models/RecommendDirectUser.cs

@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models
+{
+    public partial class RecommendDirectUser
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public string TradeMonth { get; set; }
+        public int DirectUserId { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 22 - 0
Models/RecommendTradeSummary.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models
+{
+    public partial class RecommendTradeSummary
+    {
+        public int Id { get; set; }
+        public int Sort { get; set; }
+        public int QueryCount { get; set; }
+        public int Status { get; set; }
+        public DateTime? CreateDate { get; set; }
+        public DateTime? UpdateDate { get; set; }
+        public string SeoTitle { get; set; }
+        public string SeoKeyword { get; set; }
+        public string SeoDescription { get; set; }
+        public decimal TradeAmount { get; set; }
+        public string TradeMonth { get; set; }
+        public string PosSn { get; set; }
+        public int UserId { get; set; }
+    }
+}

+ 10 - 0
Models/SpOrderNos.cs

@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models
+{
+    public partial class SpOrderNos
+    {
+        public string OrderNo { get; set; }
+    }
+}

+ 2 - 0
Models/StoreHouse.cs

@@ -37,5 +37,7 @@ namespace MySystem.Models
         public int UserId { get; set; }
         public string StoreName { get; set; }
         public string StoreNo { get; set; }
+        public DateTime? AuthDate { get; set; }
+        public ulong AuthFlag { get; set; }
     }
 }

+ 2 - 0
Models/UserAccount.cs

@@ -34,5 +34,7 @@ namespace MySystem.Models
         public int UserId { get; set; }
         public decimal TempAmount { get; set; }
         public decimal FixedAmount { get; set; }
+        public decimal LeaderReserve { get; set; }
+        public decimal ValidAmount { get; set; }
     }
 }

+ 1 - 0
Models/Users.cs

@@ -82,5 +82,6 @@ namespace MySystem.Models
         public int CashStatus { get; set; }
         public string CashNote { get; set; }
         public decimal ThisMonthTrade { get; set; }
+        public int LeaderLevel { get; set; }
     }
 }

+ 179 - 0
Models/WebCMSEntities.cs

@@ -48,6 +48,7 @@ namespace MySystem.Models
         public virtual DbSet<KqProductOrgs> KqProductOrgs { get; set; }
         public virtual DbSet<KqProductRuleSet> KqProductRuleSet { get; set; }
         public virtual DbSet<KqProducts> KqProducts { get; set; }
+        public virtual DbSet<LeaderReserveRecord> LeaderReserveRecord { get; set; }
         public virtual DbSet<MachineApply> MachineApply { get; set; }
         public virtual DbSet<MachineApplyDetail> MachineApplyDetail { get; set; }
         public virtual DbSet<MachineChange> MachineChange { get; set; }
@@ -138,10 +139,13 @@ namespace MySystem.Models
         public virtual DbSet<PullNewAct> PullNewAct { get; set; }
         public virtual DbSet<PullNewDetail> PullNewDetail { get; set; }
         public virtual DbSet<PullnewSummary> PullnewSummary { get; set; }
+        public virtual DbSet<RecommendDirectUser> RecommendDirectUser { get; set; }
+        public virtual DbSet<RecommendTradeSummary> RecommendTradeSummary { get; set; }
         public virtual DbSet<RightDic> RightDic { get; set; }
         public virtual DbSet<ServiceCenter> ServiceCenter { get; set; }
         public virtual DbSet<SetMerchantTypeRecord> SetMerchantTypeRecord { get; set; }
         public virtual DbSet<SmallStoreHouse> SmallStoreHouse { get; set; }
+        public virtual DbSet<SpOrderNos> SpOrderNos { get; set; }
         public virtual DbSet<StoreBalance> StoreBalance { get; set; }
         public virtual DbSet<StoreChangeHistory> StoreChangeHistory { get; set; }
         public virtual DbSet<StoreForCode> StoreForCode { get; set; }
@@ -2515,6 +2519,65 @@ namespace MySystem.Models
                 entity.Property(e => e.Version).HasColumnType("int(11)");
             });
 
+            modelBuilder.Entity<LeaderReserveRecord>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AfterAmt).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.BeforeAmt).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.ChangeAmt).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.ChangeType).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.OrderId).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.SourceUserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TradeDate)
+                    .HasColumnType("varchar(8)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeMonth)
+                    .HasColumnType("varchar(6)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+            });
+
             modelBuilder.Entity<MachineApply>(entity =>
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");
@@ -6110,6 +6173,8 @@ namespace MySystem.Models
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
 
+                entity.Property(e => e.ParentOrderId).HasColumnType("int(11)");
+
                 entity.Property(e => e.PayDate).HasColumnType("datetime");
 
                 entity.Property(e => e.PayMode).HasColumnType("int(11)");
@@ -6791,6 +6856,8 @@ namespace MySystem.Models
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
 
+                entity.Property(e => e.IsFirst).HasColumnType("int(11)");
+
                 entity.Property(e => e.IsPurchase).HasColumnType("int(11)");
 
                 entity.Property(e => e.IsVip)
@@ -9406,6 +9473,89 @@ namespace MySystem.Models
                 entity.Property(e => e.Version).HasColumnType("int(11)");
             });
 
+            modelBuilder.Entity<RecommendDirectUser>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.DirectUserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TradeMonth)
+                    .HasColumnType("varchar(6)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+            });
+
+            modelBuilder.Entity<RecommendTradeSummary>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.PosSn)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("varchar(500)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoKeyword)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoTitle)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Sort).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.TradeMonth)
+                    .HasColumnType("varchar(6)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+            });
+
             modelBuilder.Entity<RightDic>(entity =>
             {
                 entity.Property(e => e.Id)
@@ -9642,6 +9792,17 @@ namespace MySystem.Models
                 entity.Property(e => e.UserId).HasColumnType("int(11)");
             });
 
+            modelBuilder.Entity<SpOrderNos>(entity =>
+            {
+                entity.HasKey(e => e.OrderNo)
+                    .HasName("PRIMARY");
+
+                entity.Property(e => e.OrderNo)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
             modelBuilder.Entity<StoreBalance>(entity =>
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");
@@ -9860,6 +10021,12 @@ namespace MySystem.Models
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
 
+                entity.Property(e => e.AuthDate).HasColumnType("datetime");
+
+                entity.Property(e => e.AuthFlag)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
                 entity.Property(e => e.BrandId)
                     .HasColumnType("varchar(30)")
                     .HasCharSet("utf8")
@@ -11316,6 +11483,9 @@ namespace MySystem.Models
 
             modelBuilder.Entity<TradeDaySummary>(entity =>
             {
+                entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.TradeDate, e.BrandId, e.QueryCount, e.VipFlag, e.PayType, e.SeoTitle })
+                    .HasName("TradeDaySummaryIndex");
+
                 entity.Property(e => e.Id).HasColumnType("int(11)");
 
                 entity.Property(e => e.BrandId).HasColumnType("int(11)");
@@ -11755,6 +11925,8 @@ namespace MySystem.Models
 
                 entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
 
+                entity.Property(e => e.LeaderReserve).HasColumnType("decimal(18,2)");
+
                 entity.Property(e => e.LockStatus).HasColumnType("int(11)");
 
                 entity.Property(e => e.QueryCount).HasColumnType("int(11)");
@@ -11807,6 +11979,8 @@ namespace MySystem.Models
 
                 entity.Property(e => e.UserType).HasColumnType("int(11)");
 
+                entity.Property(e => e.ValidAmount).HasColumnType("decimal(18,2)");
+
                 entity.Property(e => e.Version).HasColumnType("int(11)");
 
                 entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
@@ -14246,6 +14420,9 @@ namespace MySystem.Models
 
             modelBuilder.Entity<UserTradeMonthSummary>(entity =>
             {
+                entity.HasIndex(e => new { e.UserId, e.BrandId, e.TradeMonth, e.SeoKeyword, e.SeoTitle })
+                    .HasName("UserTradeMonthSummaryIndex");
+
                 entity.Property(e => e.Id).HasColumnType("int(11)");
 
                 entity.Property(e => e.ActiveBuddyMerStatus).HasColumnType("int(11)");
@@ -14455,6 +14632,8 @@ namespace MySystem.Models
                     .HasColumnType("bit(1)")
                     .HasDefaultValueSql("b'0'");
 
+                entity.Property(e => e.LeaderLevel).HasColumnType("int(11)");
+
                 entity.Property(e => e.LockStatus)
                     .HasColumnType("bit(1)")
                     .HasDefaultValueSql("b'0'");

+ 61 - 4
wwwroot/layuiadmin/modules_main/PosMachinesTwo_Admin.js

@@ -30,6 +30,63 @@ layui.config({
 
     //- 筛选条件-日期
     var laydate = layui.laydate;
+    var layCreateDate = laydate.render({
+        elem: '#ActivationTime',
+        type: 'date',
+        range: true,
+        trigger: 'click',
+        change: function (value, date, endDate) {
+            var op = true;
+            if (date.year == endDate.year && endDate.month - date.month <= 1) {
+                if (endDate.month - date.month == 1 && endDate.date > date.date) {
+                    op = false;
+                    layCreateDate.hint('日期范围请不要超过1个月');
+                    setTimeout(function () {
+                        $(".laydate-btns-confirm").addClass("laydate-disabled");
+                    }, 1);
+                }
+            } else {
+                op = false;
+                layCreateDate.hint('日期范围请不要超过1个月');
+                setTimeout(function () {
+                    $(".laydate-btns-confirm").addClass("laydate-disabled");
+                }, 1);
+            }
+            if (op) {
+                $('#ActivationTime').val(value);
+            }
+        }
+    });
+
+    //- 筛选条件-日期
+    var laydates = layui.laydate;
+    var layCreateDate = laydates.render({
+        elem: '#BindingTime',
+        type: 'date',
+        range: true,
+        trigger: 'click',
+        change: function (value, date, endDate) {
+            var op = true;
+            if (date.year == endDate.year && endDate.month - date.month <= 1) {
+                if (endDate.month - date.month == 1 && endDate.date > date.date) {
+                    op = false;
+                    layCreateDate.hint('日期范围请不要超过1个月');
+                    setTimeout(function () {
+                        $(".laydate-btns-confirm").addClass("laydate-disabled");
+                    }, 1);
+                }
+            } else {
+                op = false;
+                layCreateDate.hint('日期范围请不要超过1个月');
+                setTimeout(function () {
+                    $(".laydate-btns-confirm").addClass("laydate-disabled");
+                }, 1);
+            }
+            if (op) {
+                $('#BindingTime').val(value);
+            }
+        }
+    });
     
 
     //excel导入
@@ -75,10 +132,10 @@ layui.config({
             ,{field:'PosSnType', width: 200, title:'机具类型', sort: true}
             ,{field:'DeviceType', width: 200, title:'设备类型', sort: true}
             ,{field:'BindingState', width: 200, title:'绑定状态', sort: true}
-            ,{field:'BindingTime', width: 200, title:'绑定时间', sort: true}
-            , { field: 'ActivationState', width: 200, title: '激活状态', sort: true }
-            , { field: 'ActivationTime', width: 200, title: '激活时间', sort: true }
-            , { title: '操作', width: 100, align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
+            ,{ field: 'ActivationState', width: 200, title: '激活状态', sort: true }
+            ,{ field: 'ActivationTime', width: 200, title: '激活时间', sort: true }
+            ,{ field: 'BindingTime', width: 200, title: '绑定时间', sort: true }
+            ,{ title: '操作', width: 100, align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
         ]]
         , where: {
             

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

@@ -97,7 +97,7 @@ layui.config({
             ,{field:'CreateMan', title:'创建人', sort: true}
             ,{field:'CreateDate', title:'创建时间', sort: true}
             , {field:'Sort', fixed: 'right', title:'排序', width:80, edit: 'text'}
-            , { title: '操作', width: 150, align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
+            , { title: '操作', width: 200, align: 'center', fixed: 'right', toolbar: '#table-list-tools' }
         ]]
         , where: {
             

+ 8 - 5
wwwroot/layuiadmin/modules_main/UsersChildren_Admin.js

@@ -108,11 +108,14 @@ layui.config({
             , { field: 'YAmtfc', width: 200, title: '云闪付小额交易额(扶)', sort: true }
 
             , { field: 'TotalAmtwd', width: 200, title: '刷卡交易总额(稳)', sort: true }
-            , { field: 'DAmtwd', width: 200, title: '贷记卡交易额(稳', sort: true }
-            , { field: 'JAmtwd', width: 200, title: '借记卡非封顶交易额(稳', sort: true }
-            , { field: 'JfAmtwd', width: 200, title: '借记卡封顶交易额(稳', sort: true }
-            , { field: 'JCountwd', width: 200, title: '借记卡交易笔数(稳', sort: true }
-            , { field: 'YAmtwd', width: 200, title: '云闪付小额交易额(稳', sort: true }
+            , { field: 'DAmtwd', width: 200, title: '贷记卡交易额(稳)', sort: true }
+            , { field: 'JAmtwd', width: 200, title: '借记卡非封顶交易额(稳)', sort: true }
+            , { field: 'JfAmtwd', width: 200, title: '借记卡封顶交易额(稳)', sort: true }
+            , { field: 'JCountwd', width: 200, title: '借记卡交易笔数(稳)', sort: true }
+            , { field: 'YAmtwd', width: 200, title: '云闪付小额交易额(稳)', sort: true }
+
+            , { field: 'BCount', width: 200, title: '绑定数', sort: true }
+            , { field: 'ACount', width: 200, title: '激活数', sort: true }
 
             // , { field: 'HelpInfo', width: 400, title: '扶持期商户交易信息', sort: true }
             // , { field: 'NotHelpInfo', width: 400, title: '稳定期商户交易信息', sort: true }