Procházet zdrojové kódy

更换微信参数
添加机具库数据表
整理创客数据的统计
调整消费者付款后,退款的机制,不够人数直接返商户

lichunlei před 3 roky
rodič
revize
1a3b128d19

+ 1 - 1
AppStart/Helper/ConsumerOrdersReturnDoService.cs

@@ -62,7 +62,7 @@ namespace MySystem
                     else if (item.PayMode == 2)
                     {
                         string AppId = "wxe2c051b3e46c0f6f";
-                        string MchId = "1613112281";
+                        string MchId = "1611167423";
                         MerchantAddInfo merchantAdd = db.MerchantAddInfo.FirstOrDefault(m => m.Id == item.MerchantId) ?? new MerchantAddInfo();
                         MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == item.MerchantId) ?? new MerchantInfo();
                         string SubMchId = merchantAdd.SubMchid;

+ 11 - 4
AppStart/Helper/ConsumerOrdersStatService.cs

@@ -78,7 +78,7 @@ namespace MySystem
                                     {
                                         BothdisDbconn.Instance.AddInt("TotalOrder:Alipay:" + merchant.UserId + ":" + TradeMonth);
                                     }
-                                    else
+                                    else if (order.PayMode == 2)
                                     {
                                         BothdisDbconn.Instance.AddInt("TotalOrder:WeChat:" + merchant.UserId + ":" + TradeMonth);
                                     }
@@ -122,7 +122,7 @@ namespace MySystem
                                                 {
                                                     BothdisDbconn.Instance.AddInt("TeamTotalOrder:Alipay:" + UserId + ":" + TradeMonth);
                                                 }
-                                                else
+                                                else if (order.PayMode == 2)
                                                 {
                                                     BothdisDbconn.Instance.AddInt("TeamTotalOrder:WeChat:" + UserId + ":" + TradeMonth);
                                                 }
@@ -152,8 +152,15 @@ namespace MySystem
                                             UserId = 0;
                                         }
                                     }
-
-                                    BothdisDbconn.Instance.AddList("MerchantTradeList:" + order.MerchantId, order);
+                                    
+                                    //创客所属商户交易额数据
+                                    BothdisDbconn.Instance.AddNumber("MerchantTradeAmount:" + order.MerchantId + ":" + TradeMonth, order.PayMoney);
+                                    BothdisDbconn.Instance.AddNumber("MerchantTradeAmount:" + order.MerchantId + ":" + TradeDate, order.PayMoney);
+                                    List<string> TradeMonths = BothdisDbconn.Instance.GetList<string>("MerchantTradeList:" + order.MerchantId + ":" + TradeMonth, 1, 1000);
+                                    if (!TradeMonths.Contains(TradeDate))
+                                    {
+                                        BothdisDbconn.Instance.AddList("MerchantTradeList:" + order.MerchantId + ":" + TradeMonth, TradeDate);
+                                    }
                                 }
                                 tran.Commit();
                             }

+ 16 - 14
AppStart/Helper/Profit/ProfitHelper.cs

@@ -168,6 +168,7 @@ namespace MySystem
                                         }
                                         CurDiviPersons -= 1;
                                     }
+                                    TotalActual = PayMoney * GetPercent + (DiviPersons - CurDiviPersons) * DiviMoney;
 
                                     //创客分润
                                     // DoProfit(db, order);
@@ -175,60 +176,60 @@ namespace MySystem
                                     //代理商分润
                                     // AgentProfit(db, order);
                                 }
-                                TotalActual = PayMoney * (GetPercent - cusumerFeePercent);
                             }
                             else
                             {
-                                TotalActual = PayMoney * cusumerFeePercent;
+                                TotalActual = PayMoney * (1 - cusumerFeePercent);
                             }
 
                             //统计商户数据
                             string MonthString = order.UpdateDate.Value.ToString("yyyyMM");
                             string DateString = order.UpdateDate.Value.ToString("yyyyMMdd");
                             TotalActual = PublicFunction.NumberFormat(TotalActual);
+                            function.WriteLog(TotalActual.ToString(), "监控退款队列");
                             merchant.TotalActual += TotalActual;
                             db.SaveChanges();
                             BothdisDbconn.Instance.SendMq("MerchantInfo:" + order.MerchantId, merchant);
 
-                            List<string> Months = BothdisDbconn.Instance.GetList<string>("ConsumerStat:" + MerchantId, 1, 1000);
-                            if (!Months.Contains(MonthString))
+                            List<string> Dates = BothdisDbconn.Instance.GetList<string>("ConsumerStat:" + MerchantId + ":" + MonthString, 1, 1000);
+                            if (!Dates.Contains(DateString))
                             {
-                                BothdisDbconn.Instance.AddList("ConsumerStat:" + MerchantId, MonthString);
+                                BothdisDbconn.Instance.AddList("ConsumerStat:" + MerchantId + ":" + MonthString, DateString);
                             }
                             MerchantIndexStat DateIndexStat = BothdisDbconn.Instance.Get<MerchantIndexStat>("MerchantIndexStat:" + MerchantId + ":" + DateString) ?? new MerchantIndexStat();
                             DateIndexStat.TotalOrder += 1;
                             DateIndexStat.TotalAmount += PayMoney;
-                            DateIndexStat.TotalActual = TotalActual;
+                            DateIndexStat.TotalActual += TotalActual;
                             if (order.PayMode == 1)
                             {
                                 DateIndexStat.AlipayTotalAmount += PayMoney;
-                                DateIndexStat.AlipayTotalActual = TotalActual;
+                                DateIndexStat.AlipayTotalActual += TotalActual;
                             }
                             else if (order.PayMode == 2)
                             {
                                 DateIndexStat.WeChatTotalAmount += PayMoney;
-                                DateIndexStat.WeChatTotalActual = TotalActual;
+                                DateIndexStat.WeChatTotalActual += TotalActual;
                             }
                             BothdisDbconn.Instance.Set("MerchantIndexStat:" + MerchantId + ":" + DateString, DateIndexStat);
 
-                            List<string> Dates = BothdisDbconn.Instance.GetList<string>("ConsumerStat:" + MerchantId + ":" + MonthString, 1, 1000);
-                            if (!Dates.Contains(DateString))
+                            List<string> Months = BothdisDbconn.Instance.GetList<string>("ConsumerStat:" + MerchantId, 1, 1000);
+                            if (!Months.Contains(MonthString))
                             {
-                                BothdisDbconn.Instance.AddList("ConsumerStat:" + MerchantId + ":" + MonthString, DateString);
+                                BothdisDbconn.Instance.AddList("ConsumerStat:" + MerchantId, MonthString);
                             }
                             MerchantIndexStat MonthIndexStat = BothdisDbconn.Instance.Get<MerchantIndexStat>("MerchantIndexStat:" + MerchantId + ":" + MonthString) ?? new MerchantIndexStat();
                             MonthIndexStat.TotalOrder += 1;
                             MonthIndexStat.TotalAmount += PayMoney;
-                            MonthIndexStat.TotalActual = TotalActual;
+                            MonthIndexStat.TotalActual += TotalActual;
                             if (order.PayMode == 1)
                             {
                                 MonthIndexStat.AlipayTotalAmount += PayMoney;
-                                MonthIndexStat.AlipayTotalActual = TotalActual;
+                                MonthIndexStat.AlipayTotalActual += TotalActual;
                             }
                             else if (order.PayMode == 2)
                             {
                                 MonthIndexStat.WeChatTotalAmount += PayMoney;
-                                MonthIndexStat.WeChatTotalActual = TotalActual;
+                                MonthIndexStat.WeChatTotalActual += TotalActual;
                             }
                             BothdisDbconn.Instance.Set("MerchantIndexStat:" + MerchantId + ":" + MonthString, MonthIndexStat);
 
@@ -237,6 +238,7 @@ namespace MySystem
                             BothdisDbconn.Instance.AddNumber("TeamTradeStat:" + UserId + ":" + DateString, PayMoney);
                             BothdisDbconn.Instance.AddNumber("TeamTradeStat:" + UserId + ":" + PayMode + ":" + DateString, PayMoney);
                             BothdisDbconn.Instance.AddNumber("TeamTradeStat:" + UserId + ":" + PayMode + ":" + DateString, PayMoney);
+
                         }
                     }
                     tran.Commit();

+ 2 - 2
AppStart/Helper/WeChatPayBackService.cs

@@ -60,7 +60,7 @@ namespace MySystem
                             JsonData resource = jsonObj["resource"];
                             //开始解密
                             string WxPayResourceDecryptModel = AesGcmDecrypt(resource["associated_data"].ToString(), resource["nonce"].ToString(), resource["ciphertext"].ToString());
-                            // {\"sp_mchid\":\"1613112281\",\"sub_mchid\":\"1622024882\",\"sp_appid\":\"wxe2c051b3e46c0f6f\",\"out_trade_no\":\"2022022621562926396898863\",\"transaction_id\":\"4200001412202202267619496496\",\"trade_type\":\"JSAPI\",\"trade_state\":\"SUCCESS\",\"trade_state_desc\":\"支付成功\",\"bank_type\":\"OTHERS\",\"attach\":\"\",\"success_time\":\"2022-02-26T21:56:42+08:00\",\"payer\":{\"sp_openid\":\"omawy5W6jb0pgPfuKUVs6K3bEhzk\",\"sub_openid\":\"\"},\"amount\":{\"total\":1,\"payer_total\":1,\"currency\":\"CNY\",\"payer_currency\":\"CNY\"}}
+                            // {\"sp_mchid\":\"1611167423\",\"sub_mchid\":\"1622024882\",\"sp_appid\":\"wxe2c051b3e46c0f6f\",\"out_trade_no\":\"2022022621562926396898863\",\"transaction_id\":\"4200001412202202267619496496\",\"trade_type\":\"JSAPI\",\"trade_state\":\"SUCCESS\",\"trade_state_desc\":\"支付成功\",\"bank_type\":\"OTHERS\",\"attach\":\"\",\"success_time\":\"2022-02-26T21:56:42+08:00\",\"payer\":{\"sp_openid\":\"omawy5W6jb0pgPfuKUVs6K3bEhzk\",\"sub_openid\":\"\"},\"amount\":{\"total\":1,\"payer_total\":1,\"currency\":\"CNY\",\"payer_currency\":\"CNY\"}}
                             JsonData orderObj = JsonMapper.ToObject(WxPayResourceDecryptModel);
                             string OrderNo = orderObj["out_trade_no"].ToString();
                             WebCMSEntities db = new WebCMSEntities();
@@ -95,7 +95,7 @@ namespace MySystem
         private string ALGORITHM = "AES/GCM/NoPadding";
         private int TAG_LENGTH_BIT = 128;
         private int NONCE_LENGTH_BYTE = 12;
-        private string AES_KEY = "MnCaYwY1Oe8LpK287141Yj7FLLGOvIve";//你的v3秘钥
+        private string AES_KEY = "IXNp98vUznaOuwvRSLo3n57v8uCdMMJJ";//你的v3秘钥
 
         public string AesGcmDecrypt(string associatedData, string nonce, string ciphertext)
         {

+ 5 - 5
AppStart/WeChatFunction.cs

@@ -196,7 +196,7 @@ namespace MySystem
             // 商户API证书和微信支付平台证书均可以使用第三方的证书解析工具,查看证书内容。或者使用openssl命令行工具查看证书序列号。
             // $ openssl x509 -in 1900009191_20180326_cert.pem -noout -serial
             // serial=1DDE55AD98ED71D6EDD4A4A16996DE7B47773A8C
-            string merchantId = "1613112281";   //商户号
+            string merchantId = "1611167423";   //商户号
             string serialNo = "61D99F7218B487788E35D6C4E3ED398E0979D3F6";  //证书编号
             string resp = postJson("https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/", req, prikey, merchantId, serialNo);
             function.WriteLog(resp, "商户进件日志");
@@ -212,7 +212,7 @@ namespace MySystem
             Dictionary<string, object> return_result = new Dictionary<string, object>();
             try
             {
-                string merchantId = "1613112281";   //商户号
+                string merchantId = "1611167423";   //商户号
                 string serialNo = "61D99F7218B487788E35D6C4E3ED398E0979D3F6";  //证书编号
                 string result = postJson("https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/business_code/" + BusinessCode, "", prikey, merchantId, serialNo, "GET");
                 function.WriteLog(result, "服务商平台查询申请单状态API");
@@ -327,7 +327,7 @@ namespace MySystem
             request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3100.0 Safari/537.36";
             request.Accept = "application/json";
 
-            string Authorization = GetAuthorization(url, method, postData, privateKey, merchantId, "4DD075520570E89C215AD816F67083C3DC7053C8");
+            string Authorization = GetAuthorization(url, method, postData, privateKey, merchantId, "62B64854B768D344249FDB9E6EF4A1232C000E84");
             request.Headers.Add("Authorization", Authorization);
             request.Headers.Add("Wechatpay-Serial", serialNo);
             if (!string.IsNullOrEmpty(postData))
@@ -407,8 +407,8 @@ namespace MySystem
         {
             string url = "https://api.mch.weixin.qq.com/v3/merchant/media/upload";
             
-            string merchantId = "1613112281";   //商户号
-            string serialNo = "4DD075520570E89C215AD816F67083C3DC7053C8";  //证书编号
+            string merchantId = "1611167423";   //商户号
+            string serialNo = "62B64854B768D344249FDB9E6EF4A1232C000E84";  //证书编号
             string privateKey = prikey;
             #region 定义请求体中的内容 并转成二进制
 

+ 47 - 0
Models/PosMachinesTwo.cs

@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.Models
+{
+    public partial class PosMachinesTwo
+    {
+        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 SourceStoreId { get; set; }
+        public int OrderId { get; set; }
+        public DateTime? RecycEndDate { get; set; }
+        public string DeviceKind { get; set; }
+        public string DeviceName { get; set; }
+        public string BatchNo { get; set; }
+        public string DeviceType { get; set; }
+        public int PosSnType { get; set; }
+        public int BindMerchantId { get; set; }
+        public string ActivityList { get; set; }
+        public decimal ScanQrTrade { get; set; }
+        public decimal DebitCardTrade { get; set; }
+        public int StoreId { get; set; }
+        public int RecycBackCount { get; set; }
+        public string PrizeParams { get; set; }
+        public ulong IsVip { get; set; }
+        public decimal CreditTrade { get; set; }
+        public int BrandId { get; set; }
+        public string UserNav { get; set; }
+        public int BuyUserId { get; set; }
+        public DateTime? TransferTime { get; set; }
+        public string PosSn { get; set; }
+        public ulong IsPurchase { get; set; }
+        public int UserId { get; set; }
+        public DateTime? BindingTime { get; set; }
+        public DateTime? ActivationTime { get; set; }
+        public string Detail { get; set; }
+        public int ActivationState { get; set; }
+        public int BindingState { get; set; }
+    }
+}

+ 120 - 0
Models/WebCMSEntities.cs

@@ -92,6 +92,7 @@ namespace MySystem.Models
         public virtual DbSet<PageInfo> PageInfo { get; set; }
         public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
         public virtual DbSet<PosMachines> PosMachines { get; set; }
+        public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
         public virtual DbSet<ProductComment> ProductComment { get; set; }
         public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
         public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
@@ -6229,6 +6230,125 @@ namespace MySystem.Models
                 entity.Property(e => e.Version).HasColumnType("int(11)");
             });
 
+            modelBuilder.Entity<PosMachinesTwo>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ActivationState).HasColumnType("int(11)");
+
+                entity.Property(e => e.ActivationTime).HasColumnType("datetime");
+
+                entity.Property(e => e.ActivityList)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BatchNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
+
+                entity.Property(e => e.BindingState).HasColumnType("int(11)");
+
+                entity.Property(e => e.BindingTime).HasColumnType("datetime");
+
+                entity.Property(e => e.BrandId).HasColumnType("int(11)");
+
+                entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.Detail)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceKind)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceName)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceType)
+                    .HasColumnType("varchar(20)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IsPurchase)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.IsVip)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.OrderId).HasColumnType("int(11)");
+
+                entity.Property(e => e.PosSn)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.PosSnType).HasColumnType("int(11)");
+
+                entity.Property(e => e.PrizeParams)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
+
+                entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
+
+                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.SourceStoreId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.StoreId).HasColumnType("int(11)");
+
+                entity.Property(e => e.TransferTime).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.UserNav)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
             modelBuilder.Entity<ProductComment>(entity =>
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");

+ 47 - 0
PxcModels/PosMachinesTwo.cs

@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.PxcModels
+{
+    public partial class PosMachinesTwo
+    {
+        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 SourceStoreId { get; set; }
+        public int OrderId { get; set; }
+        public DateTime? RecycEndDate { get; set; }
+        public string DeviceKind { get; set; }
+        public string DeviceName { get; set; }
+        public string BatchNo { get; set; }
+        public string DeviceType { get; set; }
+        public int PosSnType { get; set; }
+        public int BindMerchantId { get; set; }
+        public string ActivityList { get; set; }
+        public decimal ScanQrTrade { get; set; }
+        public decimal DebitCardTrade { get; set; }
+        public int StoreId { get; set; }
+        public int RecycBackCount { get; set; }
+        public string PrizeParams { get; set; }
+        public ulong IsVip { get; set; }
+        public decimal CreditTrade { get; set; }
+        public int BrandId { get; set; }
+        public string UserNav { get; set; }
+        public int BuyUserId { get; set; }
+        public DateTime? TransferTime { get; set; }
+        public string PosSn { get; set; }
+        public ulong IsPurchase { get; set; }
+        public int UserId { get; set; }
+        public DateTime? BindingTime { get; set; }
+        public DateTime? ActivationTime { get; set; }
+        public string Detail { get; set; }
+        public int ActivationState { get; set; }
+        public int BindingState { get; set; }
+    }
+}

+ 120 - 0
PxcModels/WebCMSEntities.cs

@@ -92,6 +92,7 @@ namespace MySystem.PxcModels
         public virtual DbSet<PageInfo> PageInfo { get; set; }
         public virtual DbSet<PageUpdateInfo> PageUpdateInfo { get; set; }
         public virtual DbSet<PosMachines> PosMachines { get; set; }
+        public virtual DbSet<PosMachinesTwo> PosMachinesTwo { get; set; }
         public virtual DbSet<ProductComment> ProductComment { get; set; }
         public virtual DbSet<ProductCommentAgree> ProductCommentAgree { get; set; }
         public virtual DbSet<ProductFareAreas> ProductFareAreas { get; set; }
@@ -6265,6 +6266,125 @@ namespace MySystem.PxcModels
                 entity.Property(e => e.Version).HasColumnType("int(11)");
             });
 
+            modelBuilder.Entity<PosMachinesTwo>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.ActivationState).HasColumnType("int(11)");
+
+                entity.Property(e => e.ActivationTime).HasColumnType("datetime");
+
+                entity.Property(e => e.ActivityList)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BatchNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BindMerchantId).HasColumnType("int(11)");
+
+                entity.Property(e => e.BindingState).HasColumnType("int(11)");
+
+                entity.Property(e => e.BindingTime).HasColumnType("datetime");
+
+                entity.Property(e => e.BrandId).HasColumnType("int(11)");
+
+                entity.Property(e => e.BuyUserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreditTrade).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.DebitCardTrade).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.Detail)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceKind)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceName)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DeviceType)
+                    .HasColumnType("varchar(20)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IsPurchase)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.IsVip)
+                    .HasColumnType("bit(1)")
+                    .HasDefaultValueSql("b'0'");
+
+                entity.Property(e => e.OrderId).HasColumnType("int(11)");
+
+                entity.Property(e => e.PosSn)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.PosSnType).HasColumnType("int(11)");
+
+                entity.Property(e => e.PrizeParams)
+                    .HasColumnType("varchar(200)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RecycBackCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.RecycEndDate).HasColumnType("datetime");
+
+                entity.Property(e => e.ScanQrTrade).HasColumnType("decimal(18,2)");
+
+                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.SourceStoreId).HasColumnType("int(11)");
+
+                entity.Property(e => e.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.StoreId).HasColumnType("int(11)");
+
+                entity.Property(e => e.TransferTime).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UserId).HasColumnType("int(11)");
+
+                entity.Property(e => e.UserNav)
+                    .HasColumnType("longtext")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+            });
+
             modelBuilder.Entity<ProductComment>(entity =>
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");

binární
bin/Debug/netcoreapp3.0/MySystem.dll


binární
bin/Debug/netcoreapp3.0/MySystem.pdb


binární
bin/release/netcoreapp3.0/MySystem.dll


binární
bin/release/netcoreapp3.0/MySystem.pdb


binární
bin/release/netcoreapp3.0/publish/MySystem.dll


binární
bin/release/netcoreapp3.0/publish/MySystem.pdb


binární
obj/Debug/netcoreapp3.0/MySystem.csproj.AssemblyReference.cache


binární
obj/Debug/netcoreapp3.0/MySystem.dll


binární
obj/Debug/netcoreapp3.0/MySystem.pdb


binární
obj/release/netcoreapp3.0/MySystem.dll


binární
obj/release/netcoreapp3.0/MySystem.pdb