Jelajahi Sumber

添加测试SP数据

lcl 2 tahun lalu
induk
melakukan
cea24d5d87

+ 376 - 0
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -5903,5 +5903,381 @@ namespace MySystem.Areas.Admin.Controllers
         }
         }
         #endregion
         #endregion
 
 
+
+
+
+
+        #region 添加SP测试绑定数据
+
+        public IActionResult AddBindData(string right)
+        {
+            ViewBag.RightInfo = RightInfo;
+            ViewBag.right = right;
+
+            return View();
+        }
+
+        [HttpPost]
+        public string AddBindDataDo(string PosSn)
+        {
+            WebCMSEntities db = new WebCMSEntities();
+            PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
+            if(pos != null)
+            {
+                string CertId = function.get_Random(6) + "********" + function.get_Random(4);
+                string MerName = function.get_Random(20);
+                string AgentName = function.get_Random(20);
+                string MerNo = function.get_Random(20);
+                string Field1 = function.get_Random(20);
+                string Field2 = function.get_Random(20);
+                string Mobile = "13" + function.get_Random(1) + "****" + function.get_Random(4);
+                string ChannelSerial = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
+                string ProductType = pos.BrandId.ToString();
+                if(ProductType == "3") ProductType = "1";
+                if(ProductType == "5") ProductType = "4";
+                if(ProductType == "11") ProductType = "10";
+                if(ProductType == "13") ProductType = "12";
+
+                SpModels.WebCMSEntities spdb = new SpModels.WebCMSEntities();
+                spdb.BindRecord.Add(new SpModels.BindRecord()
+                {
+                    Status = 1,
+                    CreateDate = DateTime.Now,
+                    SeoKeyword = CertId,
+                    ChannelSerial = ChannelSerial,
+                    UpdateTime = DateTime.Now,
+                    CreateTime = DateTime.Now,
+                    MerNewSnNo = Mobile,
+                    ProductType = ProductType,
+                    MerSnNo = PosSn,
+                    MerName = MerName,
+                    AgentName = AgentName,
+                    MerNo = MerNo,
+                    Field1 = "绑定",
+                    Field2 = Field2,
+                    Field3 = AgentName,
+                });
+                spdb.Merchants.Add(new SpModels.Merchants()
+                {
+                    Status = 1,
+                    CreateDate = DateTime.Now,
+                    UpdateDate = DateTime.Now,
+                    SnNo = PosSn,
+                    UpdateTime = DateTime.Now,
+                    Remark = "商户入库",
+                    ProductType = ProductType,
+                    MerIdcardNo = CertId,
+                    MerMobile = Mobile,
+                    AgentName = AgentName,
+                    MerNo = MerNo,
+                    Field2 = "绑定",
+                });
+                if(ProductType == "12")
+                {
+                    spdb.MerchantRecord.Add(new SpModels.MerchantRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        LegalIdCard = CertId,
+                        LegalName = MerName,
+                        ProductType = ProductType,
+                        AgentNo = AgentName,
+                        Field1 = "盒易付H版",
+                        Field2 = function.get_Random(6),
+                        CreateTime = DateTime.Now,
+                        MerNo = MerNo,
+                        MerOperateDate = DateTime.Now,
+                        MerStatus = "正常",
+                        MerName = "成都市美食梦想高档烤鸭店",
+                        AgentName = "成都市聚贤缘信息技术有限公司",
+                    });
+                }
+                spdb.SaveChanges();
+                spdb.Dispose();
+            }
+            db.Dispose();
+            return "提交成功";
+        }
+        #endregion
+
+
+        #region 添加SP测试押金数据
+
+        public IActionResult AddDepositData(string right)
+        {
+            ViewBag.RightInfo = RightInfo;
+            ViewBag.right = right;
+
+            return View();
+        }
+
+        [HttpPost]
+        public string AddDepositDataDo(string PosSn, decimal Deposit)
+        {
+            WebCMSEntities db = new WebCMSEntities();
+            PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
+            if(pos != null)
+            {
+                PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PosMerchantInfo();
+                string TradeSerialNo = function.get_Random(30);
+                string MerName = merchant.MerchantName;
+                string AgentName = function.get_Random(20);
+                string MerNo = merchant.KqMerNo;
+                string ChannelSerial = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
+                string BankCardNo = function.get_Random(6) + "******" + function.get_Random(4);
+                string ProductType = pos.BrandId.ToString();
+                if(ProductType == "3") ProductType = "1";
+                if(ProductType == "5") ProductType = "4";
+                if(ProductType == "11") ProductType = "10";
+                if(ProductType == "13") ProductType = "12";
+
+                if(ProductType == "1")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "01",
+                        SerEntryMode = "N",
+                        TradeType = "SK",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "3",
+                        TradeAmount = Deposit,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = "M" + TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "10")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "01",
+                        SerEntryMode = "1",
+                        TradeType = "M015",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "3",
+                        TradeAmount = Deposit,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "12")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "C",
+                        SerEntryMode = "40",
+                        TradeType = "SK",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "S",
+                        TradeAmount = Deposit,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                else
+                {
+                    spdb.ActivateRecord.Add(new SpModels.ActivateRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        SeoTitle = Deposit.ToString(),
+                        ProductType = ProductType,
+                        AgentNo = AgentName,
+                        ActivateDate = DateTime.Now,
+                        ActivateStatus = "00",
+                        SnNo = PosSn,
+                        MerName = MerName,
+                        MerNo = MerNo,
+                        ChannelSerial = ChannelSerial
+                    });
+                }
+                
+                spdb.SaveChanges();
+                spdb.Dispose();
+            }
+            db.Dispose();
+            return "提交成功";
+        }
+        #endregion
+
+
+        #region 添加SP测试交易数据
+
+        public IActionResult AddTradeData(string right)
+        {
+            ViewBag.RightInfo = RightInfo;
+            ViewBag.right = right;
+
+            return View();
+        }
+
+        [HttpPost]
+        public string AddTradeDataDo(string PosSn, decimal Amount)
+        {
+            WebCMSEntities db = new WebCMSEntities();
+            PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
+            if(pos != null)
+            {
+                PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId) ?? new PosMerchantInfo();
+                string TradeSerialNo = function.get_Random(30);
+                string MerName = merchant.MerchantName;
+                string AgentName = function.get_Random(20);
+                string MerNo = merchant.KqMerNo;
+                string ChannelSerial = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
+                string BankCardNo = function.get_Random(6) + "******" + function.get_Random(4);
+                string ProductType = pos.BrandId.ToString();
+                if(ProductType == "3") ProductType = "1";
+                if(ProductType == "5") ProductType = "4";
+                if(ProductType == "11") ProductType = "10";
+                if(ProductType == "13") ProductType = "12";
+
+                if(ProductType == "1")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "01",
+                        SerEntryMode = "I",
+                        TradeType = "SK",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "3",
+                        TradeAmount = Amount,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = "M" + TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "10")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "01",
+                        SerEntryMode = "0",
+                        TradeType = "M015",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "3",
+                        TradeAmount = Amount,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "12")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "C",
+                        SerEntryMode = "31",
+                        TradeType = "SK",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "S",
+                        TradeAmount = Amount,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "7")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "S",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "CC",
+                        TradeType = "PUR",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "00",
+                        TradeAmount = Amount,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                else if(ProductType == "15")
+                {
+                    spdb.TradeRecord.Add(new SpModels.TradeRecord()
+                    {
+                        Status = 1,
+                        CreateDate = DateTime.Now,
+                        ChannelSerial = ChannelSerial,
+                        AgentNo = AgentName,
+                        ProductType = ProductType,
+                        SettleMethod = "liankebao_TP10_299",
+                        BankCardNo = BankCardNo,
+                        TradeSnNo = PosSn,
+                        BankCardType = "02",
+                        TradeType = "104",
+                        TradeTime = DateTime.Now.ToString("yyyyMMdd"),
+                        TradeStatus = "00",
+                        TradeAmount = Amount,
+                        MerNo = MerNo,
+                        MerName = MerName,
+                        TradeSerialNo = TradeSerialNo,
+                    });
+                }
+                
+                spdb.SaveChanges();
+                spdb.Dispose();
+            }
+            db.Dispose();
+            return "提交成功";
+        }
+        #endregion
+
     }
     }
 }
 }

+ 124 - 0
Areas/Admin/Views/MainServer/SysTools/AddBindData.cshtml

@@ -0,0 +1,124 @@
+@{
+    string RightInfo = ViewBag.RightInfo as string;
+    string right = ViewBag.right as string;
+    
+}
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>绑定数据</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
+    <script src="/admin/js/jquery-1.10.1.min.js"></script>
+    <script src="/admin/js/LAreaData2.js"></script>
+</head>
+<body>
+
+    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
+        <form class="layui-form" id="confirmFrm">
+            <div class="layui-card">
+                <div class="layui-card-body">
+                    <div class="layui-tab" lay-filter="mytabbar">
+                        <ul class="layui-tab-title">
+                            <li class="layui-this" lay-id="1">基本信息</li>
+                        </ul>
+                        <div class="layui-tab-content mt20">
+                            <div class="layui-tab-item layui-show">
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">机具SN</label>
+                                    <div class="layui-input-inline">
+                                        <input class="layui-input" type="text" id="PosSn"
+                                            name="PosSn" maxlength="50" autocomplete="off" placeholder="请输入机具SN">
+                                    </div>
+                                </div>
+                            </div>
+
+                        </div>
+                    </div>
+                    <div class="layui-form-item ml10">
+                        <div class="layui-input-block">
+                            <button type="button" class="layui-btn" onclick="save()">提交</button>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+
+    <script src="/layuiadmin/layui/layui.js"></script>
+    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
+    <script src="/other/mybjq/kindeditor-min.js"></script>
+    <script src="/other/mybjq/lang/zh_CN.js"></script>
+    <script>
+        function save() {
+            var loadindex = layer.load(1, {
+                shade: [0.5, '#000']
+            });
+            var userdata = $("#confirmFrm").serialize();
+            $.ajax({
+                type: "POST",
+                url: "/Admin/SysTools/AddBindDataDo?r=" + Math.random(1),
+                data: userdata,
+                dataType: "json",
+                success: function (data) {
+                    layer.close(loadindex);
+                    layer.msg("提交成功");
+                }
+            });
+        }
+        
+                    
+        //编辑器
+        KindEditor.ready(function (K) {
+            
+        });
+                
+        var tree;
+        var element;
+        var upload;
+        layui.config({
+            base: '/layuiadmin/' //静态资源所在路径
+        }).extend({
+            index: 'lib/index' //主入口模块
+        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
+            var $ = layui.$
+                , form = layui.form
+                , layer = layui.layer
+                , layedit = layui.layedit
+                , laydate = layui.laydate
+                , croppers = layui.croppers
+                , transfer = layui.transfer
+                , util = layui.util;
+            tree = layui.tree;
+            element = layui.element;
+            upload = layui.upload;
+        
+            //Hash地址的定位
+            var layid = location.hash.replace(/^#test=/, '');
+            element.tabChange('test', layid);
+            element.on('tab(test)', function (elem) {
+                location.hash = 'test=' + $(this).attr('lay-id');
+            });
+    
+            //日期
+            
+
+            //上传文件
+            
+
+            //穿梭框
+            
+
+            //TreeView,比如权限管理
+            
+
+            //省市区
+            
+        })
+
+    </script>
+</body>
+</html>

+ 131 - 0
Areas/Admin/Views/MainServer/SysTools/AddDepositData.cshtml

@@ -0,0 +1,131 @@
+@{
+    string RightInfo = ViewBag.RightInfo as string;
+    string right = ViewBag.right as string;
+    
+}
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>绑定数据</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
+    <script src="/admin/js/jquery-1.10.1.min.js"></script>
+    <script src="/admin/js/LAreaData2.js"></script>
+</head>
+<body>
+
+    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
+        <form class="layui-form" id="confirmFrm">
+            <div class="layui-card">
+                <div class="layui-card-body">
+                    <div class="layui-tab" lay-filter="mytabbar">
+                        <ul class="layui-tab-title">
+                            <li class="layui-this" lay-id="1">基本信息</li>
+                        </ul>
+                        <div class="layui-tab-content mt20">
+                            <div class="layui-tab-item layui-show">
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">机具SN</label>
+                                    <div class="layui-input-inline">
+                                        <input class="layui-input" type="text" id="PosSn"
+                                            name="PosSn" maxlength="50" autocomplete="off" placeholder="请输入机具SN">
+                                    </div>
+                                </div>
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">金额</label>
+                                    <div class="layui-input-inline">
+                                        <input class="layui-input" type="text" id="Deposit"
+                                            name="Deposit" maxlength="50" autocomplete="off" placeholder="请输入金额">
+                                    </div>
+                                </div>
+                            </div>
+
+                        </div>
+                    </div>
+                    <div class="layui-form-item ml10">
+                        <div class="layui-input-block">
+                            <button type="button" class="layui-btn" onclick="save()">提交</button>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+
+    <script src="/layuiadmin/layui/layui.js"></script>
+    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
+    <script src="/other/mybjq/kindeditor-min.js"></script>
+    <script src="/other/mybjq/lang/zh_CN.js"></script>
+    <script>
+        function save() {
+            var loadindex = layer.load(1, {
+                shade: [0.5, '#000']
+            });
+            var userdata = $("#confirmFrm").serialize();
+            $.ajax({
+                type: "POST",
+                url: "/Admin/SysTools/AddDepositDataDo?r=" + Math.random(1),
+                data: userdata,
+                dataType: "json",
+                success: function (data) {
+                    layer.close(loadindex);
+                    layer.msg("提交成功");
+                }
+            });
+        }
+        
+                    
+        //编辑器
+        KindEditor.ready(function (K) {
+            
+        });
+                
+        var tree;
+        var element;
+        var upload;
+        layui.config({
+            base: '/layuiadmin/' //静态资源所在路径
+        }).extend({
+            index: 'lib/index' //主入口模块
+        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
+            var $ = layui.$
+                , form = layui.form
+                , layer = layui.layer
+                , layedit = layui.layedit
+                , laydate = layui.laydate
+                , croppers = layui.croppers
+                , transfer = layui.transfer
+                , util = layui.util;
+            tree = layui.tree;
+            element = layui.element;
+            upload = layui.upload;
+        
+            //Hash地址的定位
+            var layid = location.hash.replace(/^#test=/, '');
+            element.tabChange('test', layid);
+            element.on('tab(test)', function (elem) {
+                location.hash = 'test=' + $(this).attr('lay-id');
+            });
+    
+            //日期
+            
+
+            //上传文件
+            
+
+            //穿梭框
+            
+
+            //TreeView,比如权限管理
+            
+
+            //省市区
+            
+        })
+
+    </script>
+</body>
+</html>

+ 131 - 0
Areas/Admin/Views/MainServer/SysTools/AddTradeData.cshtml

@@ -0,0 +1,131 @@
+@{
+    string RightInfo = ViewBag.RightInfo as string;
+    string right = ViewBag.right as string;
+    
+}
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title>绑定数据</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
+    <script src="/admin/js/jquery-1.10.1.min.js"></script>
+    <script src="/admin/js/LAreaData2.js"></script>
+</head>
+<body>
+
+    <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
+        <form class="layui-form" id="confirmFrm">
+            <div class="layui-card">
+                <div class="layui-card-body">
+                    <div class="layui-tab" lay-filter="mytabbar">
+                        <ul class="layui-tab-title">
+                            <li class="layui-this" lay-id="1">基本信息</li>
+                        </ul>
+                        <div class="layui-tab-content mt20">
+                            <div class="layui-tab-item layui-show">
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">机具SN</label>
+                                    <div class="layui-input-inline">
+                                        <input class="layui-input" type="text" id="PosSn"
+                                            name="PosSn" maxlength="50" autocomplete="off" placeholder="请输入机具SN">
+                                    </div>
+                                </div>
+                                <div class="layui-form-item">
+                                    <label class="layui-form-label">金额</label>
+                                    <div class="layui-input-inline">
+                                        <input class="layui-input" type="text" id="Amount"
+                                            name="Amount" maxlength="50" autocomplete="off" placeholder="请输入金额">
+                                    </div>
+                                </div>
+                            </div>
+
+                        </div>
+                    </div>
+                    <div class="layui-form-item ml10">
+                        <div class="layui-input-block">
+                            <button type="button" class="layui-btn" onclick="save()">提交</button>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </form>
+    </div>
+
+    <script src="/layuiadmin/layui/layui.js"></script>
+    <script src="/other/oss/upload-min@(MySystem.OssHelper.Instance.OssStatus ? "-oss" : "").js"></script>
+    <script src="/other/mybjq/kindeditor-min.js"></script>
+    <script src="/other/mybjq/lang/zh_CN.js"></script>
+    <script>
+        function save() {
+            var loadindex = layer.load(1, {
+                shade: [0.5, '#000']
+            });
+            var userdata = $("#confirmFrm").serialize();
+            $.ajax({
+                type: "POST",
+                url: "/Admin/SysTools/AddTradeDataDo?r=" + Math.random(1),
+                data: userdata,
+                dataType: "json",
+                success: function (data) {
+                    layer.close(loadindex);
+                    layer.msg("提交成功");
+                }
+            });
+        }
+        
+                    
+        //编辑器
+        KindEditor.ready(function (K) {
+            
+        });
+                
+        var tree;
+        var element;
+        var upload;
+        layui.config({
+            base: '/layuiadmin/' //静态资源所在路径
+        }).extend({
+            index: 'lib/index' //主入口模块
+        }).use(['index', 'form', 'upload', 'layedit', 'laydate', 'element', 'croppers', 'transfer', 'tree', 'util'], function () {
+            var $ = layui.$
+                , form = layui.form
+                , layer = layui.layer
+                , layedit = layui.layedit
+                , laydate = layui.laydate
+                , croppers = layui.croppers
+                , transfer = layui.transfer
+                , util = layui.util;
+            tree = layui.tree;
+            element = layui.element;
+            upload = layui.upload;
+        
+            //Hash地址的定位
+            var layid = location.hash.replace(/^#test=/, '');
+            element.tabChange('test', layid);
+            element.on('tab(test)', function (elem) {
+                location.hash = 'test=' + $(this).attr('lay-id');
+            });
+    
+            //日期
+            
+
+            //上传文件
+            
+
+            //穿梭框
+            
+
+            //TreeView,比如权限管理
+            
+
+            //省市区
+            
+        })
+
+    </script>
+</body>
+</html>

+ 9 - 1
SpModels/KssMerchant.cs

@@ -5,7 +5,15 @@ namespace MySystem.SpModels
 {
 {
     public partial class KssMerchant
     public partial class KssMerchant
     {
     {
-        public string MerNo { get; set; }
+        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 DateTime? UpdateTime { get; set; }
         public DateTime? UpdateTime { get; set; }
         public DateTime? CreateTime { get; set; }
         public DateTime? CreateTime { get; set; }
         public string Remark { get; set; }
         public string Remark { get; set; }

+ 42 - 0
SpModels/MerchantRecord.cs

@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.SpModels
+{
+    public partial class MerchantRecord
+    {
+        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 Areas { get; set; }
+        public string City { get; set; }
+        public string Province { get; set; }
+        public string LegalIdCard { get; set; }
+        public string LegalName { get; set; }
+        public string AgentNo { get; set; }
+        public string Field5 { get; set; }
+        public string Field4 { get; set; }
+        public string Field3 { get; set; }
+        public string Field2 { get; set; }
+        public string Field1 { get; set; }
+        public string ChannelSerial { get; set; }
+        public DateTime? UpdateTime { get; set; }
+        public DateTime? CreateTime { get; set; }
+        public string Remark { get; set; }
+        public string MerNewSnNo { get; set; }
+        public string ProductType { get; set; }
+        public string MerStatus { get; set; }
+        public string MerOperateType { get; set; }
+        public DateTime? MerOperateDate { get; set; }
+        public string MerSnNo { get; set; }
+        public string MerName { get; set; }
+        public string AgentName { get; set; }
+        public string MerNo { get; set; }
+    }
+}

+ 10 - 0
SpModels/OrderNos.cs

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

+ 11 - 0
SpModels/OrderNos2.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.SpModels
+{
+    public partial class OrderNos2
+    {
+        public int Id { get; set; }
+        public string OrderNo { get; set; }
+    }
+}

+ 52 - 0
SpModels/TradeRecordCheck.cs

@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+
+namespace MySystem.SpModels
+{
+    public partial class TradeRecordCheck
+    {
+        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 ChannelSerial { get; set; }
+        public string AgentNo { get; set; }
+        public string ProductType { get; set; }
+        public string Remark { get; set; }
+        public string SettleMethod { get; set; }
+        public decimal SettleFee { get; set; }
+        public string BankCardNo { get; set; }
+        public string ReceiptType { get; set; }
+        public string IsStoreCashier { get; set; }
+        public decimal DigAmt { get; set; }
+        public string DigAmtFlag { get; set; }
+        public string MerMobile { get; set; }
+        public string DeviceType { get; set; }
+        public string TradeSnNo { get; set; }
+        public string BankCardType { get; set; }
+        public string SerEntryMode { get; set; }
+        public string TradeType { get; set; }
+        public string TradeTime { get; set; }
+        public string TradeDate { get; set; }
+        public string ErrorMsg { get; set; }
+        public string ErrorCode { get; set; }
+        public string TradeStatus { get; set; }
+        public string DiscountRateFlag { get; set; }
+        public string BankAuthCode { get; set; }
+        public string TradeReferNo { get; set; }
+        public decimal TradeAmount { get; set; }
+        public string MerName { get; set; }
+        public string MerNo { get; set; }
+        public string TradeSerialNo { get; set; }
+        public string Field5 { get; set; }
+        public string Field4 { get; set; }
+        public string Field3 { get; set; }
+        public string Field2 { get; set; }
+        public string Field1 { get; set; }
+    }
+}

+ 394 - 8
SpModels/WebCMSEntities.cs

@@ -31,18 +31,22 @@ namespace MySystem.SpModels
         public virtual DbSet<KssReturnDeposit> KssReturnDeposit { get; set; }
         public virtual DbSet<KssReturnDeposit> KssReturnDeposit { get; set; }
         public virtual DbSet<KssStageRwd> KssStageRwd { get; set; }
         public virtual DbSet<KssStageRwd> KssStageRwd { get; set; }
         public virtual DbSet<KssTradeFirst> KssTradeFirst { get; set; }
         public virtual DbSet<KssTradeFirst> KssTradeFirst { get; set; }
+        public virtual DbSet<MerchantRecord> MerchantRecord { get; set; }
         public virtual DbSet<Merchants> Merchants { get; set; }
         public virtual DbSet<Merchants> Merchants { get; set; }
+        public virtual DbSet<OrderNos> OrderNos { get; set; }
+        public virtual DbSet<OrderNos2> OrderNos2 { get; set; }
         public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
         public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
         public virtual DbSet<RightDic> RightDic { get; set; }
         public virtual DbSet<RightDic> RightDic { get; set; }
         public virtual DbSet<SysLog> SysLog { get; set; }
         public virtual DbSet<SysLog> SysLog { get; set; }
         public virtual DbSet<TradeFluxRecord> TradeFluxRecord { get; set; }
         public virtual DbSet<TradeFluxRecord> TradeFluxRecord { get; set; }
         public virtual DbSet<TradeRecord> TradeRecord { get; set; }
         public virtual DbSet<TradeRecord> TradeRecord { get; set; }
+        public virtual DbSet<TradeRecordCheck> TradeRecordCheck { get; set; }
         public virtual DbSet<UnBindRecord> UnBindRecord { get; set; }
         public virtual DbSet<UnBindRecord> UnBindRecord { get; set; }
 
 
         protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
         protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
         {
         {
             if (!optionsBuilder.IsConfigured)
             if (!optionsBuilder.IsConfigured)
-            {                
+            {
                 optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
                 optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
             }
             }
         }
         }
@@ -1184,13 +1188,7 @@ namespace MySystem.SpModels
 
 
             modelBuilder.Entity<KssMerchant>(entity =>
             modelBuilder.Entity<KssMerchant>(entity =>
             {
             {
-                entity.HasKey(e => e.MerNo)
-                    .HasName("PRIMARY");
-
-                entity.Property(e => e.MerNo)
-                    .HasColumnType("varchar(32)")
-                    .HasCharSet("utf8")
-                    .HasCollation("utf8_general_ci");
+                entity.Property(e => e.Id).HasColumnType("int(11)");
 
 
                 entity.Property(e => e.AgentName)
                 entity.Property(e => e.AgentName)
                     .HasColumnType("varchar(64)")
                     .HasColumnType("varchar(64)")
@@ -1202,6 +1200,8 @@ namespace MySystem.SpModels
                     .HasCharSet("utf8")
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
                     .HasCollation("utf8_general_ci");
 
 
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
                 entity.Property(e => e.CreateTime).HasColumnType("datetime");
                 entity.Property(e => e.CreateTime).HasColumnType("datetime");
 
 
                 entity.Property(e => e.MerAuditDate).HasColumnType("datetime");
                 entity.Property(e => e.MerAuditDate).HasColumnType("datetime");
@@ -1243,11 +1243,34 @@ namespace MySystem.SpModels
                     .HasCharSet("utf8")
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
                     .HasCollation("utf8_general_ci");
 
 
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
                 entity.Property(e => e.Remark)
                 entity.Property(e => e.Remark)
                     .HasColumnType("varchar(64)")
                     .HasColumnType("varchar(64)")
                     .HasCharSet("utf8")
                     .HasCharSet("utf8")
                     .HasCollation("utf8_general_ci");
                     .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.Status).HasColumnType("int(11)");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
             });
             });
 
 
@@ -1452,6 +1475,147 @@ namespace MySystem.SpModels
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
             });
             });
 
 
+            modelBuilder.Entity<MerchantRecord>(entity =>
+            {
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AgentName)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.AgentNo)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Areas)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ChannelSerial)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.City)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.CreateTime).HasColumnType("datetime");
+
+                entity.Property(e => e.Field1)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field2)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field3)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field4)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field5)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.LegalIdCard)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.LegalName)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerName)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerNewSnNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerOperateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.MerOperateType)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerSnNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerStatus)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ProductType)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Province)
+                    .HasColumnType("varchar(30)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("mediumtext")
+                    .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.UpdateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.UpdateTime).HasColumnType("datetime");
+            });
+
             modelBuilder.Entity<Merchants>(entity =>
             modelBuilder.Entity<Merchants>(entity =>
             {
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");
                 entity.Property(e => e.Id).HasColumnType("int(11)");
@@ -1580,6 +1744,34 @@ namespace MySystem.SpModels
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
                 entity.Property(e => e.UpdateTime).HasColumnType("datetime");
             });
             });
 
 
+            modelBuilder.Entity<OrderNos>(entity =>
+            {
+                entity.HasKey(e => e.OrderNo)
+                    .HasName("PRIMARY");
+
+                entity.HasIndex(e => e.OrderNo)
+                    .HasName("OrderNosIndex");
+
+                entity.Property(e => e.OrderNo)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("latin1")
+                    .HasCollation("latin1_swedish_ci");
+            });
+
+            modelBuilder.Entity<OrderNos2>(entity =>
+            {
+                entity.HasIndex(e => e.OrderNo)
+                    .HasName("OrderNosIndex");
+
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.OrderNo)
+                    .IsRequired()
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("latin1")
+                    .HasCollation("latin1_swedish_ci");
+            });
+
             modelBuilder.Entity<ProfitRecord>(entity =>
             modelBuilder.Entity<ProfitRecord>(entity =>
             {
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");
                 entity.Property(e => e.Id).HasColumnType("int(11)");
@@ -2135,6 +2327,200 @@ namespace MySystem.SpModels
                 entity.Property(e => e.UpdateDate).HasColumnType("datetime");
                 entity.Property(e => e.UpdateDate).HasColumnType("datetime");
             });
             });
 
 
+            modelBuilder.Entity<TradeRecordCheck>(entity =>
+            {
+                entity.HasIndex(e => e.ChannelSerial)
+                    .HasName("TradeRecordCheckIndex");
+
+                entity.Property(e => e.Id).HasColumnType("int(11)");
+
+                entity.Property(e => e.AgentNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BankAuthCode)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BankCardNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.BankCardType)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ChannelSerial)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.CreateDate).HasColumnType("datetime");
+
+                entity.Property(e => e.DeviceType)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.DigAmtFlag)
+                    .HasColumnType("varchar(4)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.DiscountRateFlag)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ErrorCode)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ErrorMsg)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field1)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field2)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field3)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field4)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Field5)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.IsStoreCashier)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerMobile)
+                    .HasColumnType("varchar(11)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerName)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.MerNo)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.ProductType)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.QueryCount).HasColumnType("int(11)");
+
+                entity.Property(e => e.ReceiptType)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.Remark)
+                    .HasColumnType("varchar(64)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SeoDescription)
+                    .HasColumnType("mediumtext")
+                    .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.SerEntryMode)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)");
+
+                entity.Property(e => e.SettleMethod)
+                    .HasColumnType("varchar(16)")
+                    .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.TradeDate)
+                    .HasColumnType("varchar(8)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeReferNo)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeSerialNo)
+                    .HasColumnType("varchar(100)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeSnNo)
+                    .HasColumnType("varchar(50)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeStatus)
+                    .HasColumnType("varchar(16)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeTime)
+                    .HasColumnType("varchar(8)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.TradeType)
+                    .HasColumnType("varchar(32)")
+                    .HasCharSet("utf8")
+                    .HasCollation("utf8_general_ci");
+
+                entity.Property(e => e.UpdateDate).HasColumnType("datetime");
+            });
+
             modelBuilder.Entity<UnBindRecord>(entity =>
             modelBuilder.Entity<UnBindRecord>(entity =>
             {
             {
                 entity.Property(e => e.Id).HasColumnType("int(11)");
                 entity.Property(e => e.Id).HasColumnType("int(11)");