Commit 479d4a2b authored by Perry_Zhu's avatar Perry_Zhu

白条每日赔付样式调整

parent 5621c030
......@@ -134,18 +134,14 @@ def split_repay(df_repay, df_plan, account_type):
df_hk_new = pd.merge(df_t, df_hk_new, how='left', on=['order_no', 'term_no'])
df_hk_new.loc[df_hk_new['hk_day'].isnull(), 'hk_day'] = df_hk_new.loc[df_hk_new['hk_day'].isnull(), 't_day']
df_hk_new.fillna(0, inplace=True)
df_hk_new = df_hk_new[
['order_no', 'term_no', 'hk_day', 'plan_all', 'zc_prin_inst_total', 'yq_prin_inst_total',
'tq_prin_inst_total']]
else:
df_hk_new = df_plan
df_hk_new.rename(columns={'plan_day': 'hk_day'}, inplace=True)
df_hk_new['zc_prin_inst_total'] = 0.0
df_hk_new['yq_prin_inst_total'] = 0.0
df_hk_new['tq_prin_inst_total'] = 0.0
df_hk_new = df_hk_new[
['order_no', 'term_no', 'hk_day', 'plan_all', 'zc_prin_inst_total', 'yq_prin_inst_total',
'tq_prin_inst_total']]
df_hk_new = df_hk_new[['order_no', 'term_no', 'hk_day', 'plan_all', 'zc_prin_inst_total', 'yq_prin_inst_total',
'tq_prin_inst_total']]
else:
df_hk_new = df_plan
df_hk_new['zc_prin_inst_total'] = 0.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment