コード例 #1
0
 def info_assert_amt_mch_accnt(self, Type, **kwargs):
     """
     子商户或分润明细预期结果生成
     with_draw_info_index  提现明细数量
     mch_accnt_info_index  提现账户明细数量
     his_settled_amount_index 结算金额明细数量
     profit_index 分润账户明细数量
     propay_index 准备金账户明细数量
     """
     if Type:
         dic = MachAntWithdrawUp.info_assert_kwargs()
         dic['with_draw_info_index'] = kwargs[
             'with_draw_info_index']  # 提现明细数量
         dic['mch_accnt_info_index'] = kwargs[
             'mch_accnt_info_index']  # 提现账户明细数量
         dic['his_settled_amount_index'] = kwargs[
             'his_settled_amount_index']  # 结算金额记录明细数量
         dic['profit_index'] = kwargs['profit_index']  # 分润账户明细数量
         dic['propay_index'] = kwargs['propay_index']  # 准备金账户明细数量
         return dic
     table_name_list = [
         Constants.TableName.WITH_DRAW_INFO,
         Constants.TableName.HIS_ACCNT_MCH_SUB,
         Constants.TableName.HIS_SETTLED_AMOUNT,
         Constants.TableName.HIS_ACCNT_PROFILE,
         Constants.TableName.HIS_ACCNT_PREPAY
     ]
     dic_key_list = [
         'with_draw_info_index', 'mch_accnt_info_index',
         'his_settled_amount_index', 'profit_index', 'propay_index'
     ]
     dic = MachAntWithdrawUp.info_assert_kwargs()
     for index in range(len(table_name_list)):
         result = SqlSave.mch_select_info(table_name_list[index])
         if len(result) == 0:
             dic[dic_key_list[index]] = ''
         dic[dic_key_list[index]] = len(result)
     return dic
コード例 #2
0
 def with_draw_info():
     """查看提现结果表的返回"""
     info = SqlSave.mch_select_info('with_draw_info')
     return info[0][13]