Jelajahi Sumber

修复一个bug

Joey 1 Minggu lalu
induk
melakukan
2123233100
1 mengubah file dengan 6 tambahan dan 4 penghapusan
  1. 6 4
      modules/sqlUtilities.dos

+ 6 - 4
modules/sqlUtilities.dos

@@ -118,13 +118,15 @@ def get_nav_table_description(entity_type) {
 def get_performance_table_description(entity_type) {
 
     tmp_universe = table(100:0, 
-                         ['type', 'table_name', 'sec_id_col'],
-                         [STRING, STRING, STRING]);
+                         ['type', 'table_name', 'sec_id_col', 'cumulative_nav_col'],
+                         [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'],
-        ['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);