def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_cust_daily_holding = self.conf['stock_cust_daily_holding_table'] self.target_table = self.conf["stock_cust_return_by_prd_table"] self.step = int(self.confIni.get("task_stock_cust_return_by_prd", "travel_part_step")) self.table_part = int(self.confIni.get("task_stock_cust_daily_holding", "part_numbers")) self.target_temp_table = self.conf["stock_cust_return_by_prd_temp_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_prd_mon_check_exception_data = self.conf[ 'stock_prd_mon_check_exception_data_table'] self.stock_cust_return_by_prd_by_month = self.conf[ 'stock_cust_return_by_prd_temp_table'] self.stock_return_by_month = self.conf["stock_return_by_month_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_dr_check_exception_data = self.conf[ 'stock_dr_check_exception_data_table'] self.stock_daily_check_data = self.conf['check_data_table'] self.stock_cust_daily_return = self.conf[ 'stock_cust_daily_return_table']
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_cust_daily_holding = self.conf[ 'stock_cust_daily_holding_table'] self.stock_daily_check_data = self.conf["check_data_table"] self.stock_description = self.conf["stock_description_table"] self.part_numbers = int( self.confIni.get("task_stock_cust_daily_holding", "part_numbers"))
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_cust_investment_ability = self.conf[ 'stock_cust_investment_ability_table'] self.stock_cust_pl_analysis = self.conf['stock_cust_pl_analysis_table'] self.taget_detail_table = self.conf[ "stock_inv_pl_check_exception_data_table"] self.taget_report_table = self.conf[ "stock_inv_pl_check_exception_report_table"]
def __init__(self, spark, busi_date, mode): LeekSparkJob.__init__(self, spark) # T-1Date self.enddate = busi_date # 如果不是交易日,则不进行计算 if not self.is_trading_day(self.enddate): print("task start error day[%s] is not trading day" % self.enddate) sys.exit(0) self.mode = mode
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_prd_ind_check_exception_data = self.conf[ 'stock_prd_ind_check_exception_data_table'] self.stock_prd_ind_check_exception_report = self.conf[ "stock_prd_ind_check_exception_report_table"] self.stock_cust_return_by_prd = self.conf[ 'stock_cust_return_by_prd_table'] self.stock_cust_return_by_prd_ind = self.conf[ "stock_cust_return_by_prd_ind_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_cust_daily_return = self.conf[ 'stock_cust_daily_return_table'] self.stock_asset_holding = self.conf["asset_table"] self.stock_debt_holding = self.conf["debt_table"] self.stock_daily_check_data = self.conf["check_data_table"] self.stock_cash_flow = self.conf["stock_cash_flow_merge_table"] self.asset_cust_daily_return = self.conf[ "asset_cust_daily_return_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_close_c_trade_long_data = self.conf[ 'long_c_close_trade_table'] self.stock_unclose_c_trade_long_data = self.conf[ 'long_c_unclose_trade_table'] self.stock_close_c_trade_short_data = self.conf[ 'short_c_close_trade_table'] self.stock_unclose_c_trade_short_data = self.conf[ 'short_c_unclose_trade_table'] self.check_data_table = self.conf['check_data_table'] self.taget_detail_table = self.conf[ "stock_cdc_check_exception_data_table"] self.taget_report_table = self.conf[ "stock_cdc_check_exception_report_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_close_tradebyday_long_data = self.conf[ "stock_close_tradebyday_long_data_table"] self.stock_close_tradebyday_short_data = self.conf[ "stock_close_tradebyday_short_data_table"] self.stock_unclose_tradebyday_long_data = self.conf[ "stock_unclose_tradebyday_long_data_table"] self.stock_unclose_tradebyday_short_data = self.conf[ "stock_unclose_tradebyday_short_data_table"] self.stock_unclose_tradebyday_long_cal = self.conf[ "stock_unclose_tradebyday_long_cal_table"] self.stock_unclose_tradebyday_short_cal = self.conf[ "stock_unclose_tradebyday_short_cal_table"] self.cash_flow_detail = self.conf['cash_flow_table'] self.asset_table = self.conf['asset_table'] self.debt_table = self.conf["debt_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_close_o_trade_long_data = self.conf['long_close_trade_table'] self.stock_unclose_o_trade_long_data = self.conf['long_unclose_trade_table'] self.stock_close_o_trade_short_data = self.conf['short_close_trade_table'] self.stock_unclose_o_trade_short_data = self.conf['short_unclose_trade_table'] self.stock_close_c_trade_long_data = self.conf['long_c_close_trade_table'] self.stock_unclose_c_trade_long_data = self.conf['long_c_unclose_trade_table'] self.stock_close_c_trade_short_data = self.conf['short_c_close_trade_table'] self.stock_unclose_c_trade_short_data = self.conf['short_c_unclose_trade_table'] self.stock_close_tradebyday_long_data = self.conf["stock_close_tradebyday_long_data_table"] self.stock_close_tradebyday_short_data = self.conf[ "stock_close_tradebyday_short_data_table"] self.stock_unclose_tradebyday_long_data = self.conf[ "stock_unclose_tradebyday_long_data_table"] self.stock_unclose_tradebyday_short_data = self.conf[ "stock_unclose_tradebyday_short_data_table"] self.stock_close_prd_long_data = self.conf["long_close_table"] self.stock_unclose_prd_long_data = self.conf["long_unclose_table"] self.stock_close_prd_short_data = self.conf["short_close_table"] self.stock_unclose_prd_short_data = self.conf["short_unclose_table"] self.taget_table = self.conf["stock_trdrr_check_exception_data_table"]
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.asset_dr_check_exception_report = self.conf['asset_dr_check_exception_report_table'] self.asset_dr_check_exception_data = self.conf['asset_dr_check_exception_data_table'] self.asset_cust_daily_return = self.conf['asset_cust_daily_return_table']
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_ac_check_exception_report = self.conf[ 'stock_ac_check_exception_report_table'] self.stock_daily_check_data = self.conf['check_data_table']
def __init__(self, spark): LeekSparkJob.__init__(self, spark) self.stock_cust_daily_return = self.conf[ 'stock_cust_daily_return_table'] self.stock_return_by_month = self.conf["stock_return_by_month_table"]