def test_003_api_78dk_app_process_saveBankCardInfo(self): """ 绑定银行卡1-输入银行卡信息 :return: """ xqkj_query.insert_user_bankinfo(loginAction.get_user_uuid()) global bank_card_no, bank_card_mobile, bill_email
def test_005_api_78dk_platform_prompt_urge_manual_allocation(self): """ Time :2019-10-08 author : 闫红 desc :手动分案v1.5.2,客户uuid为空 """ global app_user_uuid app_user_uuid = loginAction.get_user_uuid() res = json.loads(PlatformAction.test_api_78dk_platform_prompt_urge_manual_allocation(urgeuuid=userUuid, useruuids=[''])) Assertion.verity(res['code'], '20000') Assertion.verityContain(res['msg'], '你传入的客户uuid不存在')
def test_003_api_78dk_platform_prompt_urge_manual_allocation(self): """ Time :2019-10-08 author : 闫红 desc :手动分案v1.5.2,手动分案时,催收员必须是 开启分案 状态 """ global app_user_uuid app_user_uuid = loginAction.get_user_uuid() res = json.loads(PlatformAction.test_api_78dk_platform_prompt_urge_manual_allocation(urgeuuid=userUuid, useruuids=[app_user_uuid])) Assertion.verity(res['code'], '10000') Assertion.verity(res['msg'], '成功')
def test_037_test_api_78dk_app_process_saveContractSupplementImages(self): """ 保存补充资料(新) :return: """ global contract_uuid contract_uuid = xqkj_query.get_contract_uuid_for_user( loginAction.get_user_uuid()) loginAction.global_dict.set(contract_uuid=contract_uuid) res = json.loads( AppAction.test_api_78dk_app_process_saveContractSupplementImages( datalist=[], contractuuid=contract_uuid)) Assertion.verity(res['code'], '10000')
def test_011_del_uerinfo(self): """ 删除客户信息 :return: """ user_uuid = loginAction.get_user_uuid() xqkj_query.delete_info('Tbl_UserBankCardInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserContactInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserIdCardInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserMailListInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserOcrInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserPersonalInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserPlaceOrderGps', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_UserWorkInfo', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_TransLog', 'user_id="{}"'.format(user_uuid))
def test_001_active_contract(self): """ 激活订单,修改订单状态未机审通过 :return: """ global contract_uuid, app_user_uuid app_user_uuid = loginAction.get_user_uuid() contract_uuid = xqkj_query.get_contract_uuid_for_user(app_user_uuid) # contract_uuid = '3222d8b7acac4a45a91f0b1b01bd6fec' # contract_uuid = xqkj_query.get_contract_uuid_for_machine() loginAction.global_dict.set(contract_uuid=contract_uuid) loginAction.global_dict.set(app_user_uuid=app_user_uuid) # 修改订单状态为机审通过 xqkj_query.update_contract_machine_pass(contract_uuid, app_user_uuid)
def test_010_del_contract(self): """ 删除订单信息 :return: """ user_uuid = loginAction.get_user_uuid() contract_uuids = xqkj_query.get_tbl_infos('Tbl_Contract', 'contract_uuid', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_info('Tbl_Contract', 'user_uuid="{}"'.format(user_uuid)) xqkj_query.delete_infos('Tbl_ContractCustomerLabel', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_ContractImage', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_ContractInfo', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_ContractOperationLog', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_FinalCheckLog', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_FirstCheckLog', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_TelephoneCheckLog', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_QifaMachineLog', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_AuditComment', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_AuditCommentAttachment', 'contract_uuid', contract_uuids) xqkj_query.delete_infos('Tbl_AuditMonitor', 'contract_uuid', contract_uuids)
def get_contract_uuid_for_user(user_uuid=None): if user_uuid is None: user_uuid = la.get_user_uuid() la.LOGGER.info('user_uuid : {}'.format(user_uuid)) return mydb.select_one(la.DB, 'Tbl_Contract', 'contract_uuid', "user_uuid='{}' ORDER BY id DESC".format(user_uuid))