@@ -299,7 +301,7 @@ class UserCustomerDataAdaptor:
...
@@ -299,7 +301,7 @@ class UserCustomerDataAdaptor:
eliffund_type==3:
eliffund_type==3:
per_sql="""select distinct `price_date`, `ret_1w`, `ret_1m`, `ret_6m`, `ret_1y`, `ret_ytd`, `ret_incep` from `ifa_imported_fund_count` where `fund_id`='{}' order by `price_date` ASC""".format(
per_sql="""select distinct `price_date`, `ret_1w`, `ret_1m`, `ret_6m`, `ret_1y`, `ret_ytd`, `ret_incep` from `ifa_imported_fund_count` where `fund_id`='{}' order by `price_date` ASC""".format(
cur_fund_id)
cur_fund_id)
cur=tamp_product_session.execute(per_sql)
cur=tamp_fund_session.execute(per_sql)
else:
else:
cur=tamp_product_session.execute(per_sql)
cur=tamp_product_session.execute(per_sql)
data=cur.fetchall()
data=cur.fetchall()
...
@@ -456,9 +458,9 @@ class UserCustomerDataAdaptor:
...
@@ -456,9 +458,9 @@ class UserCustomerDataAdaptor:
sql="""select distinct `id`, `end_date`, `accum_nav` from `public_fund_nav` where `id`='{}' order by `end_date` ASC""".format(
sql="""select distinct `fund_id`, `price_date`, `cumulative_nav` from `tx_fund_nav` where `fund_id`='{}' and `delete_tag`=0 order by `price_date` ASC""".format(