• <tfoot id='bjb8jzbh'></tfoot>

      <legend id='mqvejibs'><style id='xu4d5gfy'><dir id='823hbtsr'><q id='kftkvr9f'></q></dir></style></legend>

      <small id='tzyhs267'></small><noframes id='x4kbj7md'>

    1. <i id='a18tf0g0'><tr id='nlb7vet4'><dt id='bt2xcj54'><q id='m89uiv2k'><span id='rprqf8lq'><b id='k4t1wkrb'><form id='st8u43c6'><ins id='6eb2kad7'></ins><ul id='y0cyhrkx'></ul><sub id='1h64csnl'></sub></form><legend id='70fiv169'></legend><bdo id='pbw3m3g0'><pre id='kbkikzxw'><center id='vsj309t3'></center></pre></bdo></b><th id='oikta8oa'></th></span></q></dt></tr></i><div id='hlw2pd5o'><tfoot id='fq1dexai'></tfoot><dl id='0rjyh6ts'><fieldset id='5qne8d0p'></fieldset></dl></div>
    2. 
      当前位置: 牛股配资网 > 期货配资 > 601988股票(中国银行股价现在是多少)

      601988股票(中国银行股价现在是多少)

      2020-11-14 0条评论


      数据库

      1 。user table

      TBL _ user


      2 。余额表

      tbl_balance

      field type default value description
      uuid varchar(36) primary key
      name varchar(100) user name
      password varchar(100) MD5 password
      exchange rate double(6,2) 0 transaction fee
      create time varchar(32) creation time
      status int(3) 0 current status 0:normal 2: exception

      default value

      description

      field type default value description
      uuid varchar(36) primary key
      double(11 ,3) varchar(36) 帐户余额
      TBL _ recharge double(11,3) 0 3 。充值表
      TBL _ recharge varchar(32) type

      count

      description

      field type default value description
      uuid varchar(36) primary key
      double(11 ,3) varchar(36) 帐户余额
      varchar(255) double(11,3) 0 备注
      create time varchar(32) creation time
      description varchar(255) description
      K财富

      Varchar(36)

      primary key

      field type default value description
      uuid varchar(36) primary key
      double(11  ,3) varchar(36) 帐户余额
      last updatetime varchar(6) last update time
      useridstock code int(11) 0 4  。交易记录表是一个每天的表
      TBL _ recharge varchar(32) type
      default value varchar(50) uuid

      更新_余额

      每个用户一个文件

      新写入

      修改用户库存位置

      Request:
      {
        "name":"",   //用户名 手机号 中文英文
        "password":"",  //密码 6~20位 任意
        "exchangerate":"2.5"   //交易费率
      }
      Response   :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"qwertyuioasdfghjkzxcvbnm",
         "name":"",
         "password":"",
         "exchangerate":"2.5",
         "createtime":"2017-07-02 14:34:33",
         "status":"0"
         }
      }
      

      更新_持有库存

      每个用户每个库存一个文件接下来为大家介绍" K财富 概述601988股票(中国银行股价现在是多少)"不明白的看来一下哦
      601988股票(中国银行股价现在是多少)

      Request  :
      {
        "name":"",       //用户名 手机号 中文英文
        "password":"tyuiotrthfkghjhkfhgjhkjtyui",  //密码 可以是明文也可以密文
      }
      Response :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"qwertyuioasdfghjkzxcvbnm",
         "name":"",
         "password":"",
         "exchangerate":"2.5",
         "createtime":"2017-07-02 14:34:33",
         "status":"0"
         }
      }
      

      新写入

      每次更新_余额

      Request   :
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "password":""       //密码 可以是明文也可以密文
      }
      Response:
      {
        "statusCode":"000000",
        "result":"ok"
      }
      

      更新_持有库存

      分别为线程时覆盖以前的记录  ,并包含并发映射用户标识 ,命令 。每次有新数据时 ,将覆盖以前的数据

      Request   :
      /servlet/getuserdata?userid=qwertyuioasdfghjkzxcvbnm
      Response :
      {
        "statusCode":"000000",
        "result":{
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "name":"",
         "exchangerate":"2.5",
         "balance":"",
         "stockdata": 
           {
            "uuid":"fdaserqrewrqewrdgqeterqwe",
            "userid":"qwertyuioasdfghjkzxcvbnm",
            "stockcode":"",
            "count":"2000",
            "lastupdatetime":"2017-07-12 12:33:33",
            "useridstockcode":"qwertyuioasdfghjkzxcvbnm_"
           },
           ……
          
         }
      }
      

      database

      作为文件夹

      Request :
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "stockcode":""       //股票代码
      }
      Response  :
      {
        "statusCode":"000000",
        "result":{
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "stockcode":"",
         "balance":"",
         "holdcount":"2000"
        }
      }
      

      20.cmd

      20.cmd

      Request :
      /servlet/getstockdata?stockcode=
      }
      Response   :
      {
        "statusCode":"000000",
        "result":{
         "gid":"sh",    /*股票编号*/
         "increPer": "9.91",    /*涨跌百分比*/
         "increase": "43.99",   /*涨跌额*/
         "name":"南京银行",    /*股票名称*/
         "todayStartPri":"8.26",   /*今日开盘价*/
         "yestodEndPri":"8.26",   /*昨日收盘价*/
         "nowPri":"8.37",    /*当前价格*/
         "todayMax":"8.55",    /*今日最高价*/
         "todayMin":"8.25",    /*今日最低价*/
         "competitivePri":"8.37",  /*竞买价*/
         "reservePri":"8.38",   /*竞卖价*/
         "traNumber":"",   /*成交量*/
         "traAmount":"",  /*成交金额*/
         "buyOne":"",    /*买一*/
         "buyOnePri":"8.37",    /*买一报价*/
         "buyTwo":"",    /*买二*/
         "buyTwoPri":"8.36",    /*买二报价*/
         "buyThree":"",    /*买三*/
         "buyThreePri":"8.35",   /*买三报价*/
         "buyFour":""    / K财富 *买四*/
         "buyFourPri":"8.34",   /*买四报价*/
         "buyFive":"",    /*买五*/
         "buyFivePri":"8.42",   /*买五报价*/
         "sellOne":"",    /*卖一*/
         "sellOnePri":"8.38",   /*卖一报价*/
         "sellTwo":"",    /*卖二*/
         "sellTwoPri":"8.39",   /*卖二报价*/
         "sellThree":"",   /*卖三*/
         "sellThreePri":"8.40",   /*卖三报价*/
         "sellFour":"",    /*卖四*/
         "sellFourPri":"8.41",   /*卖四报价*/  
         "sellFive":"",   /*卖五*/
         "sellFivePri":"15.21",   /*卖五报价*/
         "date":"2012-12-11",   /*日期*/
         "time":"15:03:06",    /*时间*/
        }
      }
      

      new.db

      每10秒放入存储文件夹 。这个文件是最后10秒的文件内容 。一起写到这个文件

      Request   :
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "password":"",      //密码 6~20位 任意
        "amount":"1002.5"        //充值金额
      }
      Response  :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"fdas6fdsa6f5dsa5f536adsf3ad5ads",
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "balance":".5",
         "lastupdatetime":"2017-06-11 12:34:33"
        }
      }
      

      process.db

      正在存储的文件

      Request :
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "password":"",      //密码 6~20位 任意
        "amount":"2.5"        //提现金额
      }
      Response   :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"fuytrurtyurtyurtsfgfdsyurtyuyetrytr",
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "balance":"",
         "lastupdatetime":"2017-06-11 12:38:33"
        }
      }
      

      process.db只是执行阶段new.db的体双 。rename

      history

      Request  :
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "password":"",      //密码 6~20位
        "stockcode":"",       //股票代码
        "count":"1000"        //买入数量
        "execute":"true",        //是否真实执行
      }
      Response    :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"dafadsfdagvcthtrygdsfgsdg",
         "commandid":"",
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "stockcode":"",
         "type":"buy",
         "price":"7.12",
         "count":"1000",
         "holdstockbefore":"0",
         "holdstockafter":"1000",
         "balancebefore":"",
         "balanceafter":".2",
         "exchangeamount":"17.8",
         "stockamount":"7120",
         "totalamount":"7137.8",
         "createtime":"2017-06-13 14:28:31"
        }
      }
      

      是仓储存档文件夹

      的每小时一个文件夹 。只有

      Request:
      {
        "userid":"qwertyuioasdfghjkzxcvbnm",   //用户ID
        "password":"",      //密码 6~20位
        "stockcode":"",       //股票代码
        "count":"1000"        //买入数量
        "execute":"true",        //是否真实执行
      }
      Response    :
      {
        "statusCode":"000000",
        "result":{
         "uuid":"kljhvcbyujewvdcjhwofiuldvklc",
         "commandid":"",
         "userid":"qwertyuioasdfghjkzxcvbnm",
         "stockcode":"",
         "type":"sell",
         "price":"7.12",
         "count":"1000",
         "holdstockbefore":"0",
         "holdstockafter":"1000",
         "balancebefore":".2",
         "balanceafter":".4",
         "exchangeamount":"17.8",
         "stockamount":"7120",
         "totalamount":"7102.2",
         "createtime":"2017-06-13 15:18:32"
        }
      }
      

      create_exchange

      命令需要在此存储

      Request     :
      {
        "df43refd45refd4":{
          "type":"balance",
          "userid":"qwertyuioasdfghjkzxcvbnm", 
          "password":"",
         },
         "oi89vfadsnq4irdadaf78":{
          "type":"holdstock",
          "userid":"qwertyuioasdfghjkzxcvbnm",
          "password":"",
          "stockcode":""
         },
         "fdasfas6d8f57fa":{
          "type":"balance&holdstock",
          "userid":"qwertyuioasdfghjkzxcvbnm",
          "password":"",
          "stockcode":""
         },
         "dfaoiusfads68afsdljfdas":{
          "type":"buy",
          "commandid":"fdfidsapo68fsadhifads",
          "userid":"qwertyuioasdfghjkzxcvbnm", 
          "stockcode":""
          "count":"1000"
         },
         "7a89f0ds576fadsfasd987":{
          "type":"sell",
          "commandid":"dfasiuy687sfdadfasdfasd",
          "userid":"qwertyuioasdfgffhjkzxcvbnm", 
          "password":"",
          "stockcode":""
          "count":"1000"
         }
      }
      Response  :
      {
        "statusCode":"000000",
        "result":{
         "df43refd45refd4":{
          "userid":"qwertyuioasdfghjkzxcvbnm", 
          "balance":".4"
         },
         "oi89vfadsnq4irdadaf78":{
          "userid":"qwertyuioasddfghjkzxcvbnm",
          "stockcode":""
          "holdcount":"1000"
         },
         "fdasfas6d8f57fa":{
          "userid":"qwertyuioasdfghjkzxcvbnm",
          "stockcode":""
          "holdcount":"1000",
          "balance":".4"
         },
         "dfaoiusfads68afsdljfdas":{
          "userid":"qwertyuioasdfghdjkzxcvbnm", 
          "stockcode":""
          "count":"1000"
         },
         "7a89f0ds576fadsfasd987":{
          "userid":"qwertyuioasdfdghjkzxcvbnm",
          "stockcode":""
          "count":"1000"
         }
       }
      }
      

      文件夹示例

      |名称|说明|结构|
      |:--|:--:|
      |cachekey_user|用户集合|Map<userid,UserMap>|
      |cachekey_user_name|用户名集合|Map<username,UserMap>|
      |cachekey_balance|余额集合|Map<balanceid,BalanceMap>|
      |cachekey_balance_userid|用户余额集合|Map<userid,BalanceMap>|
      |cachekey_holdstock|持仓集合|Map<holdstockid,HoldstockMap|
      |cachekey_holdstock_userid|用户持仓集合|Map< userid,HoldstockMapList>|

      数据库存储算法

      配置文件

      field type default value description
      uuid varchar(36) primary key
      Varchar(6) varchar(36) type
      double(11 ,3) varchar(36) 帐户余额
      last updatetime varchar(6) last update time
      count varchar(20) /servlet/create user
      2 。检查用户名密码 double(7,3) 0 每次更新_余额
      useridstock code int(11) 0 /servlet/getbalanceholdstock
      6 。get stock data double(11,3) 0 /servlet/充值余额
      8 。提现 double(11,3) 0 history
      10  。购买股票 double(11,3) 0 命令需要在此存储
      文件夹示例 int(11) 0 配置文件
      配置项 int(11) 0 STOCK _ DATA _ BASELL
      Get股市数据接口 double(11,3) 0 Folder
      任务 double(11,3) 0 create _ exchange
      create time varchar(32) creation time

      文件夹

      task 为命令任务文件夹 有三种命令 ,分别在三个文件夹中

      1. 创建交易记录 create_exchange 每秒钟一个文件. 追写
      2. 更改用户余额 update_balance 每个用户一个文件 新写
      3. 修改用户股票持仓 update_holdstock 每个用户每只股票一个文件 新写 每次都覆盖之前的记录

      update_balance update_holdstock 分别为线程  ,做了容器ConcurrentHashMap<userid,command>. 每次有新的数据 ,将覆盖之前的数据

      database 为准备入库文件夹 里面每10秒一个文件夹
      20.cmd
      20.cmd
      在每个10秒的文件夹中 ,分别有如下文件

      1. new.db 等待入库文件 这个文件是将最近10秒的文件内容 ,一并写入到此文件中
      2. process.db 正在入库文件

      process.db仅仅是new.db在执行阶段的替身rename

      history 为入库归档文件夹 每小时一个文件夹
      .cmd 这里只有create_exchange命令需要存储

      文件夹示例

       - /CacheFile/TradeCommand
        - task
         - create_exchange.cmd #每秒一个文件
          - 203.cmd 
          - 204.cmd
          - 205.cmd
          - 206.cmd
         - update_holdstock.cmd #每用户一个文件
          - fdardashj23hh324jlk324ghj.cmd
          - sdaffad89s7fdjash32u4342j.cmd
          - fda9fds9a8h2i4342ifjdu342j.cmd
         - update_balance.cmd #每用户每只股票一个文件
          - fdardashj23hh324jlk324ghj_.cmd
          - sdaffad89s7fdjash32u4342j_.cmd
          - sdaffad89s7fdjash32u4342j_.cmd
          - sdaffad89s7fdj K财富 ash32u4342j_.cmd
          - fda9fds9a8h2i4342ifjdu342j_.cmd
        - database
          - create_exchange.cmd #每10秒一个文件
           - 20.cmd
          - update_holdstock.cmd #每10秒一个文件
           - 20.cmd
          - update_balance.cmd #每10秒一个文件
           - 20.cmd
        - history
          - .cmd #每小时一个文件 这里只有交易记录 
      


      我认为念完上文,您应当了解"[K财富]概述601988股票(中国银行股价现在是多少)"了吧?早已在上述文章专门教了大伙儿,坚信诸位看了以后应该可以学好哦

      转载请注明来自,本文标题:601988股票(中国银行股价现在是多少)
      本文地址:

      标签: K财富

      配置项 default value description
      STOCK_DATA_BASEURL 获得股票大盘数据接口
      COMMAND_FILE_ROOT 数据库更新文件夹根目录位置
        <tbody id='y3ibdeq5'></tbody>

      <tfoot id='avf1ncsy'></tfoot>
    3. <i id='gtwuz3fe'><tr id='pwan5wd4'><dt id='xd0ze3y8'><q id='dyrj5u7x'><span id='x98hldf8'><b id='0rpjx5ss'><form id='643m0oxn'><ins id='6if4dnfq'></ins><ul id='6h9rd5nm'></ul><sub id='d1eahid0'></sub></form><legend id='a1ije6h1'></legend><bdo id='igys79ex'><pre id='nxhbfnaf'><center id='xmya74fk'></center></pre></bdo></b><th id='sutcf1yk'></th></span></q></dt></tr></i><div id='yxyhb940'><tfoot id='10f55j8q'></tfoot><dl id='9qrbzsgb'><fieldset id='meaxlj1l'></fieldset></dl></div>
    4. <small id='cefj5avd'></small><noframes id='ah19aa4q'>

            <legend id='bxm8sxxw'><style id='9vizbegg'><dir id='0hhv8lmb'><q id='s4i8d7f0'></q></dir></style></legend>
          • 我们需要您来参与下,来添加一个评论吧(●'◡'●)

            评论框
            验证码: 看不清?点击更换

            注:网友评论仅供其表达个人看法,并不代表本站立场。

              <tbody id='ou5zhr5v'></tbody>

            <small id='flvw08ls'></small><noframes id='378829ux'>

            <i id='rcs84lov'><tr id='nusv9mib'><dt id='cio03x9l'><q id='xevsbrwh'><span id='68u6ksp8'><b id='d3hvr1e9'><form id='laarsnlj'><ins id='liexutjj'></ins><ul id='ungc6u6v'></ul><sub id='nvzjghku'></sub></form><legend id='jw5r30p9'></legend><bdo id='nie9llk5'><pre id='5wyniwna'><center id='8p3f9xrb'></center></pre></bdo></b><th id='o1bdlq51'></th></span></q></dt></tr></i><div id='pn1qpk2q'><tfoot id='jh9efqeo'></tfoot><dl id='qxt48osi'><fieldset id='eyfmq7vg'></fieldset></dl></div>

              <tfoot id='9eb9j2ab'></tfoot>

              <legend id='x61i9rxw'><style id='d0hgcytz'><dir id='a0dhm8cz'><q id='tebyv3h5'></q></dir></style></legend>

                • 搜索
                  同类文章
                  配资tag
                  股票价怎么看旭光股份股票驷裕配资海口配资公司招聘长城信息股票闽东电力股票股票被st基建股票股票买比600510股票华信配资股票的单位中兵红箭股票股票的走势线三板股票上市002615股票股票时代准确率最高的股票公式股票曲线图宝莫股份股票满江红公式 股票股票市场分析股票复牌威尔泰股票股票000661股票300270钱龙 用 什么格式 股票公式攀钢股票和讯股票网贝盈网股票充值股票600777临沂市的期货配资公司股票开户佣金最低股票 复牌金新农股票怎么操作股票中字头股票有哪些银河股票股票成交价靠谱股票配资平台什么股票配股603369股票大智慧 股票交易异常波动 公式豌豆财富为什么要清理场外配资赢鱼金服新上市股票国内期货是怎么配资的联环药业股票
                  最新评论
                  友情链接