|
@@ -118,13 +118,15 @@ def get_nav_table_description(entity_type) {
|
|
def get_performance_table_description(entity_type) {
|
|
def get_performance_table_description(entity_type) {
|
|
|
|
|
|
tmp_universe = table(100:0,
|
|
tmp_universe = table(100:0,
|
|
- ['type', 'table_name', 'sec_id_col'],
|
|
+ ['type', 'table_name', 'sec_id_col', 'cumulative_nav_col'],
|
|
- [STRING, STRING, STRING]);
|
|
+ [STRING, STRING, STRING, STRING]);
|
|
|
|
|
|
// 分别对应:公私募,私有基金,股票,市场/图译指数,私有指数,图译因子,组合
|
|
// 分别对应:公私募,私有基金,股票,市场/图译指数,私有指数,图译因子,组合
|
|
- INSERT INTO tmp_universe VALUES ( ['FD', 'CF', 'EQ', 'IX', 'CI', 'FA', 'PF'],
|
|
+ INSERT INTO tmp_universe VALUES (
|
|
|
|
+ ['FD', 'CF', 'EQ', 'IX', 'CI', 'FA', 'PF'],
|
|
['mfdb.fund_performance', 'pfdb.pf_cus_fund_performance', 'mfdb.stock_performance', 'mfdb.fund_performance', 'pfdb.cm_udf_index_performance', 'pfdb.cm_factor_performance', 'pfdb.pf_portfolio_performance'],
|
|
['mfdb.fund_performance', 'pfdb.pf_cus_fund_performance', 'mfdb.stock_performance', 'mfdb.fund_performance', 'pfdb.cm_udf_index_performance', 'pfdb.cm_factor_performance', 'pfdb.pf_portfolio_performance'],
|
|
- ['fund_id', 'fund_id', 'sec_id', 'fund_id', 'index_id', 'factor_id', 'portfolio_id']);
|
|
+ ['fund_id', 'fund_id', 'sec_id', 'fund_id', 'index_id', 'factor_id', 'portfolio_id'],
|
|
|
|
+ ['cumulative_nav', 'cumulative_nav', 'cumulative_nav', 'cumulative_nav', 'cumulative_nav', 'factor_value', 'cumulative_nav'] );
|
|
|
|
|
|
return (SELECT * FROM tmp_universe u WHERE u.type = entity_type);
|
|
return (SELECT * FROM tmp_universe u WHERE u.type = entity_type);
|
|
|
|
|