UNPKG

dm-web-react

Version:

The DM web client with React.

82 lines 7.82 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { TableBase } from "./tableBase"; import { CreateTableTemplate } from "../../models/database/createTableTemplate"; import { TableInfo } from "../../models/database/tableInfo"; var BrokerMarketBestPriceTable = /** @class */ (function (_super) { __extends(BrokerMarketBestPriceTable, _super); function BrokerMarketBestPriceTable() { var _this = _super.call(this) || this; _this.columnNames = []; _this.columnNames.push(_this.getColumnName("dataId")); _this.columnNames.push(_this.getColumnName("quoteId")); _this.columnNames.push(_this.getColumnName("bondUniCode")); _this.columnNames.push(_this.getColumnName("dmBondType")); _this.columnNames.push(_this.getColumnName("issueDataTime")); _this.columnNames.push(_this.getColumnName("brokerType")); _this.columnNames.push(_this.getColumnName("bondCode")); _this.columnNames.push(_this.getColumnName("brokerTypeValue")); _this.columnNames.push(_this.getColumnName("bid")); _this.columnNames.push(_this.getColumnName("bidValue")); _this.columnNames.push(_this.getColumnName("bidVolume")); _this.columnNames.push(_this.getColumnName("bidVolumeValue")); _this.columnNames.push(_this.getColumnName("bidQuotStatusValue")); _this.columnNames.push(_this.getColumnName("bidHintText")); _this.columnNames.push(_this.getColumnName("bidShowHint")); _this.columnNames.push(_this.getColumnName("ofr")); _this.columnNames.push(_this.getColumnName("ofrValue")); _this.columnNames.push(_this.getColumnName("ofrVolume")); _this.columnNames.push(_this.getColumnName("ofrVolumeValue")); _this.columnNames.push(_this.getColumnName("ofrQuotStatusValue")); _this.columnNames.push(_this.getColumnName("ofrHintText")); _this.columnNames.push(_this.getColumnName("ofrShowHint")); _this.columnNames.push(_this.getColumnName("bidSubChinaBond")); _this.columnNames.push(_this.getColumnName("bidSubChinaBondValue")); _this.columnNames.push(_this.getColumnName("chinaBondSubOfr")); _this.columnNames.push(_this.getColumnName("chinaBondSubOfrValue")); _this.columnNames.push(_this.getColumnName("bidSubCsIndex")); _this.columnNames.push(_this.getColumnName("bidSubCsIndexValue")); _this.columnNames.push(_this.getColumnName("csIndexSubOfr")); _this.columnNames.push(_this.getColumnName("csIndexSubOfrValue")); _this.columnNames.push(_this.getColumnName("tradeSubChinaBond")); _this.columnNames.push(_this.getColumnName("tradeSubChinaBondValue")); _this.columnNames.push(_this.getColumnName("tradeSubCsIndex")); _this.columnNames.push(_this.getColumnName("tradeSubCsIndexValue")); _this.columnNames.push(_this.getColumnName("absBidSubOfrValue")); return _this; } BrokerMarketBestPriceTable.prototype.getColumnName = function (value) { return value.toString(); }; BrokerMarketBestPriceTable.prototype.getCreateTableTemplate = function () { var createSql = "CREATE TABLE " + BrokerMarketBestPriceTable.tableName + " (\n " + this.getColumnName("dataId") + " VARCHAR(50) PRIMARY KEY, \n " + this.getColumnName("quoteId") + " INTEGER, \n " + this.getColumnName("bondUniCode") + " INTEGER, \n " + this.getColumnName("dmBondType") + " VARCHAR(50),\n " + this.getColumnName("issueDataTime") + " INTEGER,\n " + this.getColumnName("brokerType") + " VARCHAR(50),\n " + this.getColumnName("bondCode") + " VARCHAR(50),\n " + this.getColumnName("brokerTypeValue") + " INTEGER,\n " + this.getColumnName("bid") + " VARCHAR(50),\n " + this.getColumnName("bidValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidVolume") + " VARCHAR(50),\n " + this.getColumnName("bidVolumeValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidQuotStatusValue") + " INTEGER,\n " + this.getColumnName("bidHintText") + " VARCHAR(100),\n " + this.getColumnName("bidShowHint") + " INTEGER,\n " + this.getColumnName("ofr") + " VARCHAR(50),\n " + this.getColumnName("ofrValue") + " DECIMAL(10,4),\n " + this.getColumnName("ofrVolume") + " VARCHAR(50),\n " + this.getColumnName("ofrVolumeValue") + " DECIMAL(10,4),\n " + this.getColumnName("ofrQuotStatusValue") + " INTEGER,\n " + this.getColumnName("ofrHintText") + " VARCHAR(100),\n " + this.getColumnName("ofrShowHint") + " INTEGER,\n " + this.getColumnName("bidSubChinaBond") + " VARCHAR(50),\n " + this.getColumnName("bidSubChinaBondValue") + " DECIMAL(10,4),\n " + this.getColumnName("chinaBondSubOfr") + " VARCHAR(50),\n " + this.getColumnName("chinaBondSubOfrValue") + " DECIMAL(10,4),\n " + this.getColumnName("bidSubCsIndex") + " VARCHAR(50),\n " + this.getColumnName("bidSubCsIndexValue") + " DECIMAL(10,4), \n " + this.getColumnName("csIndexSubOfr") + " VARCHAR(50),\n " + this.getColumnName("csIndexSubOfrValue") + " DECIMAL(10,4), \n " + this.getColumnName("tradeSubChinaBond") + " VARCHAR(50),\n " + this.getColumnName("tradeSubChinaBondValue") + " DECIMAL(10,4),\n " + this.getColumnName("tradeSubCsIndex") + " VARCHAR(50),\n " + this.getColumnName("tradeSubCsIndexValue") + " DECIMAL(10,4),\n " + this.getColumnName("absBidSubOfrValue") + " DECIMAL(10,4)\n ); \n CREATE INDEX IF NOT EXISTS index_" + BrokerMarketBestPriceTable.tableName + "_" + this.getColumnName("issueDataTime") + " ON " + BrokerMarketBestPriceTable.tableName + "(" + this.getColumnName("issueDataTime") + ");\n CREATE INDEX IF NOT EXISTS index_" + BrokerMarketBestPriceTable.tableName + "_" + this.getColumnName("quoteId") + " ON " + BrokerMarketBestPriceTable.tableName + "(" + this.getColumnName("quoteId") + ");\n CREATE INDEX IF NOT EXISTS index_" + BrokerMarketBestPriceTable.tableName + "_" + this.getColumnName("bidValue") + " ON " + BrokerMarketBestPriceTable.tableName + "(" + this.getColumnName("bidValue") + ");\n CREATE INDEX IF NOT EXISTS index_" + BrokerMarketBestPriceTable.tableName + "_" + this.getColumnName("ofrValue") + " ON " + BrokerMarketBestPriceTable.tableName + "(" + this.getColumnName("ofrValue") + ");"; var result = new CreateTableTemplate(); result.createSql = createSql; result.tableName = BrokerMarketBestPriceTable.tableName; result.version = BrokerMarketBestPriceTable.version; return result; }; BrokerMarketBestPriceTable.prototype.getTableInfo = function () { var result = new TableInfo(); result.tableName = BrokerMarketBestPriceTable.tableName; result.columnNames = this.columnNames; return result; }; BrokerMarketBestPriceTable.tableName = "brokerMarketBestPrice"; BrokerMarketBestPriceTable.serverTablename = "bond_quote_best_price_broker"; BrokerMarketBestPriceTable.version = 5; // any update need update verison; return BrokerMarketBestPriceTable; }(TableBase)); export { BrokerMarketBestPriceTable }; //# sourceMappingURL=brokerMarketBestPriceTable.js.map