Преглед на файлове

调整字段顺序(dolphindb 通过odbc写过来需要顺序一模一样)

Joey преди 6 месеца
родител
ревизия
e7df640331
променени са 4 файла, в които са добавени 167 реда и са изтрити 167 реда
  1. 28 28
      modules/fund_indicator_dolphin.sql
  2. 65 65
      modules/fund_risk_stats_dolphin.sql
  3. 49 49
      modules/fund_riskadjret_stats_dolphin.sql
  4. 25 25
      modules/fund_style_stats_dolphin.sql

+ 28 - 28
modules/fund_indicator_dolphin.sql

@@ -1,46 +1,46 @@
 USE mfdb;
-
+-- DROP TABLE fund_indicator_dolphin
 CREATE TABLE `fund_indicator_dolphin` (
   `fund_id` varchar(10) NOT NULL COMMENT '基金id',
   `end_date` varchar(7) NOT NULL COMMENT '截至日期',
   `info_ratio_6m` decimal(22,6) DEFAULT NULL,
-  `info_ratio_1y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_2y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_3y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_4y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_5y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_10y` decimal(22,6) DEFAULT NULL,
-  `info_ratio_ytd` decimal(22,6) DEFAULT NULL,
-  `info_ratio_incep` decimal(22,6) DEFAULT NULL,
   `m2_6m` decimal(22,6) DEFAULT NULL,
-  `m2_1y` decimal(22,6) DEFAULT NULL,
-  `m2_2y` decimal(22,6) DEFAULT NULL,
-  `m2_3y` decimal(22,6) DEFAULT NULL,
-  `m2_4y` decimal(22,6) DEFAULT NULL,
-  `m2_5y` decimal(22,6) DEFAULT NULL,
-  `m2_10y` decimal(22,6) DEFAULT NULL,
-  `m2_ytd` decimal(22,6) DEFAULT NULL,
-  `m2_incep` decimal(22,6) DEFAULT NULL,
   `tracking_error_6m` decimal(22,6) DEFAULT NULL,
+  `info_ratio_1y` decimal(22,6) DEFAULT NULL,
+  `m2_1y` decimal(22,6) DEFAULT NULL,
   `tracking_error_1y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_2y` decimal(22,6) DEFAULT NULL,
+  `m2_2y` decimal(22,6) DEFAULT NULL,
   `tracking_error_2y` decimal(22,6) DEFAULT NULL,
+  `var_2y` decimal(22,6) DEFAULT NULL,
+  `cvar_2y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_3y` decimal(22,6) DEFAULT NULL,
+  `m2_3y` decimal(22,6) DEFAULT NULL,
   `tracking_error_3y` decimal(22,6) DEFAULT NULL,
+  `var_3y` decimal(22,6) DEFAULT NULL,
+  `cvar_3y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_4y` decimal(22,6) DEFAULT NULL,
+  `m2_4y` decimal(22,6) DEFAULT NULL,
   `tracking_error_4y` decimal(22,6) DEFAULT NULL,
+  `var_4y` decimal(22,6) DEFAULT NULL,
+  `cvar_4y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_5y` decimal(22,6) DEFAULT NULL,
+  `m2_5y` decimal(22,6) DEFAULT NULL,
   `tracking_error_5y` decimal(22,6) DEFAULT NULL,
+  `var_5y` decimal(22,6) DEFAULT NULL,
+  `cvar_5y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_10y` decimal(22,6) DEFAULT NULL,
+  `m2_10y` decimal(22,6) DEFAULT NULL,
   `tracking_error_10y` decimal(22,6) DEFAULT NULL,
+  `var_10y` decimal(22,6) DEFAULT NULL,
+  `cvar_10y` decimal(22,6) DEFAULT NULL,
+  `info_ratio_ytd` decimal(22,6) DEFAULT NULL,
+  `m2_ytd` decimal(22,6) DEFAULT NULL,
   `tracking_error_ytd` decimal(22,6) DEFAULT NULL,
+  `info_ratio_incep` decimal(22,6) DEFAULT NULL,
+  `m2_incep` decimal(22,6) DEFAULT NULL,
   `tracking_error_incep` decimal(22,6) DEFAULT NULL,
-  `var_2y` decimal(22,6) DEFAULT NULL,
-  `var_3y` decimal(22,6) DEFAULT NULL,
-  `var_4y` decimal(22,6) DEFAULT NULL,
-  `var_5y` decimal(22,6) DEFAULT NULL,
-  `var_10y` decimal(22,6) DEFAULT NULL,
   `var_incep` decimal(22,6) DEFAULT NULL,
-  `cvar_2y` decimal(22,6) DEFAULT NULL,
-  `cvar_3y` decimal(22,6) DEFAULT NULL,
-  `cvar_4y` decimal(22,6) DEFAULT NULL,
-  `cvar_5y` decimal(22,6) DEFAULT NULL,
-  `cvar_10y` decimal(22,6) DEFAULT NULL,
   `cvar_incep` decimal(22,6) DEFAULT NULL,
   `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
   `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
@@ -51,4 +51,4 @@ CREATE TABLE `fund_indicator_dolphin` (
   PRIMARY KEY (`fund_id`,`end_date`),
   KEY (`end_date`),
   KEY (`updatetime`)
-) COMMENT='DolphinDB写回的基金历史指标表'
+) COMMENT='DolphinDB写回的基金历史杂项指标表'

+ 65 - 65
modules/fund_risk_stats_dolphin.sql

@@ -1,88 +1,88 @@
 USE mfdb;
-
+-- DROP TABLE fund_risk_stats_dolphin;
 CREATE TABLE `fund_risk_stats_dolphin` (
   `fund_id` varchar(10) NOT NULL COMMENT '基金id',
   `end_date` varchar(7) NOT NULL COMMENT '截至日期',
   `stddev_6m` decimal(22,6) DEFAULT NULL,
-  `stddev_1y` decimal(22,6) DEFAULT NULL,
-  `stddev_2y` decimal(22,6) DEFAULT NULL,
-  `stddev_3y` decimal(22,6) DEFAULT NULL,
-  `stddev_4y` decimal(22,6) DEFAULT NULL,
-  `stddev_5y` decimal(22,6) DEFAULT NULL,
-  `stddev_10y` decimal(22,6) DEFAULT NULL,
-  `stddev_ytd` decimal(22,6) DEFAULT NULL,
-  `stddev_incep` decimal(22,6) DEFAULT NULL,
   `downsidedev_6m` decimal(22,6) DEFAULT NULL,
-  `downsidedev_1y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_2y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_3y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_4y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_5y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_10y` decimal(22,6) DEFAULT NULL,
-  `downsidedev_ytd` decimal(22,6) DEFAULT NULL,
-  `downsidedev_incep` decimal(22,6) DEFAULT NULL,
   `alpha_6m` decimal(22,6) DEFAULT NULL,
-  `alpha_1y` decimal(22,6) DEFAULT NULL,
-  `alpha_2y` decimal(22,6) DEFAULT NULL,
-  `alpha_3y` decimal(22,6) DEFAULT NULL,
-  `alpha_4y` decimal(22,6) DEFAULT NULL,
-  `alpha_5y` decimal(22,6) DEFAULT NULL,
-  `alpha_10y` decimal(22,6) DEFAULT NULL,
-  `alpha_ytd` decimal(22,6) DEFAULT NULL,
-  `alpha_incep` decimal(22,6) DEFAULT NULL,
   `winrate_6m` decimal(22,6) DEFAULT NULL,
-  `winrate_1y` decimal(22,6) DEFAULT NULL,
-  `winrate_2y` decimal(22,6) DEFAULT NULL,
-  `winrate_3y` decimal(22,6) DEFAULT NULL,
-  `winrate_4y` decimal(22,6) DEFAULT NULL,
-  `winrate_5y` decimal(22,6) DEFAULT NULL,
-  `winrate_10y` decimal(22,6) DEFAULT NULL,
-  `winrate_ytd` decimal(22,6) DEFAULT NULL,
-  `winrate_incep` decimal(22,6) DEFAULT NULL,
   `beta_6m` decimal(22,6) DEFAULT NULL,
-  `beta_1y` decimal(22,6) DEFAULT NULL,
-  `beta_2y` decimal(22,6) DEFAULT NULL,
-  `beta_3y` decimal(22,6) DEFAULT NULL,
-  `beta_4y` decimal(22,6) DEFAULT NULL,
-  `beta_5y` decimal(22,6) DEFAULT NULL,
-  `beta_10y` decimal(22,6) DEFAULT NULL,
-  `beta_ytd` decimal(22,6) DEFAULT NULL,
-  `beta_incep` decimal(22,6) DEFAULT NULL,
   `skewness_6m` decimal(22,6) DEFAULT NULL,
-  `skewness_1y` decimal(22,6) DEFAULT NULL,
-  `skewness_2y` decimal(22,6) DEFAULT NULL,
-  `skewness_3y` decimal(22,6) DEFAULT NULL,
-  `skewness_4y` decimal(22,6) DEFAULT NULL,
-  `skewness_5y` decimal(22,6) DEFAULT NULL,
-  `skewness_10y` decimal(22,6) DEFAULT NULL,
-  `skewness_ytd` decimal(22,6) DEFAULT NULL,
-  `skewness_incep` decimal(22,6) DEFAULT NULL,
   `kurtosis_6m` decimal(22,6) DEFAULT NULL,
-  `kurtosis_1y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_2y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_3y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_4y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_5y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_10y` decimal(22,6) DEFAULT NULL,
-  `kurtosis_ytd` decimal(22,6) DEFAULT NULL,
-  `kurtosis_incep` decimal(22,6) DEFAULT NULL,
   `worstmonth_6m` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_6m` decimal(22,6) DEFAULT NULL,
+  `stddev_1y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_1y` decimal(22,6) DEFAULT NULL,
+  `alpha_1y` decimal(22,6) DEFAULT NULL,
+  `winrate_1y` decimal(22,6) DEFAULT NULL,
+  `beta_1y` decimal(22,6) DEFAULT NULL,
+  `skewness_1y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_1y` decimal(22,6) DEFAULT NULL,
   `worstmonth_1y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_1y` decimal(22,6) DEFAULT NULL,
+  `stddev_2y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_2y` decimal(22,6) DEFAULT NULL,
+  `alpha_2y` decimal(22,6) DEFAULT NULL,
+  `winrate_2y` decimal(22,6) DEFAULT NULL,
+  `beta_2y` decimal(22,6) DEFAULT NULL,
+  `skewness_2y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_2y` decimal(22,6) DEFAULT NULL,
   `worstmonth_2y` decimal(22,6) DEFAULT NULL,
+  `maxdrawdown_2y` decimal(22,6) DEFAULT NULL,  
+  `stddev_3y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_3y` decimal(22,6) DEFAULT NULL,
+  `alpha_3y` decimal(22,6) DEFAULT NULL,
+  `winrate_3y` decimal(22,6) DEFAULT NULL,
+  `beta_3y` decimal(22,6) DEFAULT NULL,
+  `skewness_3y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_3y` decimal(22,6) DEFAULT NULL,
   `worstmonth_3y` decimal(22,6) DEFAULT NULL,
-  `worstmonth_4y` decimal(22,6) DEFAULT NULL,
-  `worstmonth_5y` decimal(22,6) DEFAULT NULL,
-  `worstmonth_10y` decimal(22,6) DEFAULT NULL,
-  `worstmonth_ytd` decimal(22,6) DEFAULT NULL,
-  `worstmonth_incep` decimal(22,6) DEFAULT NULL,
-  `maxdrawdown_6m` decimal(22,6) DEFAULT NULL,
-  `maxdrawdown_1y` decimal(22,6) DEFAULT NULL,
-  `maxdrawdown_2y` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_3y` decimal(22,6) DEFAULT NULL,
+  `stddev_4y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_4y` decimal(22,6) DEFAULT NULL,
+  `alpha_4y` decimal(22,6) DEFAULT NULL,
+  `winrate_4y` decimal(22,6) DEFAULT NULL,
+  `beta_4y` decimal(22,6) DEFAULT NULL,
+  `skewness_4y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_4y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_4y` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_4y` decimal(22,6) DEFAULT NULL,
+  `stddev_5y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_5y` decimal(22,6) DEFAULT NULL,
+  `alpha_5y` decimal(22,6) DEFAULT NULL,
+  `winrate_5y` decimal(22,6) DEFAULT NULL,
+  `beta_5y` decimal(22,6) DEFAULT NULL,
+  `skewness_5y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_5y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_5y` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_5y` decimal(22,6) DEFAULT NULL,
+  `stddev_10y` decimal(22,6) DEFAULT NULL,
+  `downsidedev_10y` decimal(22,6) DEFAULT NULL,
+  `alpha_10y` decimal(22,6) DEFAULT NULL,
+  `winrate_10y` decimal(22,6) DEFAULT NULL,
+  `beta_10y` decimal(22,6) DEFAULT NULL,
+  `skewness_10y` decimal(22,6) DEFAULT NULL,
+  `kurtosis_10y` decimal(22,6) DEFAULT NULL,
+  `worstmonth_10y` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_10y` decimal(22,6) DEFAULT NULL,
+  `stddev_ytd` decimal(22,6) DEFAULT NULL,
+  `downsidedev_ytd` decimal(22,6) DEFAULT NULL,
+  `alpha_ytd` decimal(22,6) DEFAULT NULL,
+  `winrate_ytd` decimal(22,6) DEFAULT NULL,
+  `beta_ytd` decimal(22,6) DEFAULT NULL,
+  `skewness_ytd` decimal(22,6) DEFAULT NULL,
+  `kurtosis_ytd` decimal(22,6) DEFAULT NULL,
+  `worstmonth_ytd` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_ytd` decimal(22,6) DEFAULT NULL,
+  `stddev_incep` decimal(22,6) DEFAULT NULL,
+  `downsidedev_incep` decimal(22,6) DEFAULT NULL,
+  `alpha_incep` decimal(22,6) DEFAULT NULL,
+  `winrate_incep` decimal(22,6) DEFAULT NULL,
+  `beta_incep` decimal(22,6) DEFAULT NULL,
+  `skewness_incep` decimal(22,6) DEFAULT NULL,
+  `kurtosis_incep` decimal(22,6) DEFAULT NULL,
+  `worstmonth_incep` decimal(22,6) DEFAULT NULL,
   `maxdrawdown_incep` decimal(22,6) DEFAULT NULL,
   `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
   `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',

+ 49 - 49
modules/fund_riskadjret_stats_dolphin.sql

@@ -1,70 +1,70 @@
 USE mfdb;
-
+-- DROP TABLE fund_riskadjret_stats_dolphin;
 CREATE TABLE `fund_riskadjret_stats_dolphin` (
   `fund_id` varchar(10) NOT NULL COMMENT '基金id',
   `end_date` varchar(7) NOT NULL COMMENT '截至日期',
   `sharperatio_6m` decimal(22,6) DEFAULT NULL,
-  `sharperatio_1y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_2y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_3y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_4y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_5y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_10y` decimal(22,6) DEFAULT NULL,
-  `sharperatio_ytd` decimal(22,6) DEFAULT NULL,
-  `sharperatio_incep` decimal(22,6) DEFAULT NULL,
   `sortinoratio_6m` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_1y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_2y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_3y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_4y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_5y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_10y` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_ytd` decimal(22,6) DEFAULT NULL,
-  `sortinoratio_incep` decimal(22,6) DEFAULT NULL,
   `treynorratio_6m` decimal(22,6) DEFAULT NULL,
-  `treynorratio_1y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_2y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_3y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_4y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_5y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_10y` decimal(22,6) DEFAULT NULL,
-  `treynorratio_ytd` decimal(22,6) DEFAULT NULL,
-  `treynorratio_incep` decimal(22,6) DEFAULT NULL,
   `jensen_6m` decimal(22,6) DEFAULT NULL,
-  `jensen_1y` decimal(22,6) DEFAULT NULL,
-  `jensen_2y` decimal(22,6) DEFAULT NULL,
-  `jensen_3y` decimal(22,6) DEFAULT NULL,
-  `jensen_4y` decimal(22,6) DEFAULT NULL,
-  `jensen_5y` decimal(22,6) DEFAULT NULL,
-  `jensen_10y` decimal(22,6) DEFAULT NULL,
-  `jensen_ytd` decimal(22,6) DEFAULT NULL,
-  `jensen_incep` decimal(22,6) DEFAULT NULL,
   `calmarratio_6m` decimal(22,6) DEFAULT NULL,
-  `calmarratio_1y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_2y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_3y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_4y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_5y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_10y` decimal(22,6) DEFAULT NULL,
-  `calmarratio_ytd` decimal(22,6) DEFAULT NULL,
-  `calmarratio_incep` decimal(22,6) DEFAULT NULL,
   `omegaratio_6m` decimal(22,6) DEFAULT NULL,
-  `omegaratio_1y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_2y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_3y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_4y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_5y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_10y` decimal(22,6) DEFAULT NULL,
-  `omegaratio_ytd` decimal(22,6) DEFAULT NULL,
-  `omegaratio_incep` decimal(22,6) DEFAULT NULL,
   `kapparatio_6m` decimal(22,6) DEFAULT NULL,
+  `sharperatio_1y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_1y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_1y` decimal(22,6) DEFAULT NULL,
+  `jensen_1y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_1y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_1y` decimal(22,6) DEFAULT NULL,
   `kapparatio_1y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_2y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_2y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_2y` decimal(22,6) DEFAULT NULL,
+  `jensen_2y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_2y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_2y` decimal(22,6) DEFAULT NULL,
   `kapparatio_2y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_3y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_3y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_3y` decimal(22,6) DEFAULT NULL,
+  `jensen_3y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_3y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_3y` decimal(22,6) DEFAULT NULL,
   `kapparatio_3y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_4y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_4y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_4y` decimal(22,6) DEFAULT NULL,
+  `jensen_4y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_4y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_4y` decimal(22,6) DEFAULT NULL,
   `kapparatio_4y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_5y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_5y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_5y` decimal(22,6) DEFAULT NULL,
+  `jensen_5y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_5y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_5y` decimal(22,6) DEFAULT NULL,
   `kapparatio_5y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_10y` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_10y` decimal(22,6) DEFAULT NULL,
+  `treynorratio_10y` decimal(22,6) DEFAULT NULL,
+  `jensen_10y` decimal(22,6) DEFAULT NULL,
+  `calmarratio_10y` decimal(22,6) DEFAULT NULL,
+  `omegaratio_10y` decimal(22,6) DEFAULT NULL,
   `kapparatio_10y` decimal(22,6) DEFAULT NULL,
+  `sharperatio_ytd` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_ytd` decimal(22,6) DEFAULT NULL,
+  `treynorratio_ytd` decimal(22,6) DEFAULT NULL,
+  `jensen_ytd` decimal(22,6) DEFAULT NULL,
+  `calmarratio_ytd` decimal(22,6) DEFAULT NULL,
+  `omegaratio_ytd` decimal(22,6) DEFAULT NULL,
   `kapparatio_ytd` decimal(22,6) DEFAULT NULL,
+  `sharperatio_incep` decimal(22,6) DEFAULT NULL,
+  `sortinoratio_incep` decimal(22,6) DEFAULT NULL,
+  `treynorratio_incep` decimal(22,6) DEFAULT NULL,
+  `jensen_incep` decimal(22,6) DEFAULT NULL,
+  `calmarratio_incep` decimal(22,6) DEFAULT NULL,
+  `omegaratio_incep` decimal(22,6) DEFAULT NULL,
   `kapparatio_incep` decimal(22,6) DEFAULT NULL,
   `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
   `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',

+ 25 - 25
modules/fund_style_stats_dolphin.sql

@@ -1,43 +1,43 @@
 USE mfdb;
-
+-- DROP TABLE fund_style_stats_dolphin;
 CREATE TABLE `fund_style_stats_dolphin` (
   `fund_id` varchar(10) NOT NULL COMMENT '基金id',
   `end_date` varchar(7) NOT NULL COMMENT '截至日期',
   `upsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
-  `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
   `upsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
-  `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
+  `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
+  `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
   `downsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
   `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
   `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',