def test_005_api_78dk_web_loan_common_returnLoanOrder(self):
     """
       Time       :2019-04-23
       author     : 罗林
       desc       :退回订单
     """
     loanuuid, businessperson, state = eq.get_info(
         'loan_order', 'loan_order_uuid,user_name,order_main_state')
     rs = ew.test_api_78dk_web_loan_common_returnLoanOrder(
         loanuuid=loanuuid)
     ass.verity(json.loads(rs)['code'], "10000")
     eq.update_order(loanuuid, 'order_main_state="{}"'.format(state))
 def test_001_api_78dk_web_loan_info_addLoanBusinessPerson(self):
     """
     Time       :2019-04-23
     author     : 罗林
     desc       :保存订单业务员
     """
     loanuuid, businessperson, state = eq.get_info(
         'loan_order', 'loan_order_uuid,user_name,order_main_state')
     rs = ew.test_api_78dk_web_loan_info_addLoanBusinessPerson(
         loanuuid=loanuuid, businessperson=businessperson)
     ass.verity(json.loads(rs)['code'], "10000")
     eq.update_order(loanuuid, 'order_main_state="{}"'.format(state))
 def test_012_api_78dk_web_loan_info_updateSalesman(self):
     """
       Time       :2019-04-24
       author     : 罗林
       desc       :更新业务员
     """
     loanuuid, businessperson, state = eq.get_info(
         'loan_order', 'loan_order_uuid,user_name,order_main_state')
     rs = ew.test_api_78dk_web_loan_info_updateSalesman(entryusername='',
                                                        uuid=loanuuid)
     ass.verity(json.loads(rs)['code'], "10000")
     eq.update_order(loanuuid, 'user_name="{}"'.format(businessperson))
 def test_005_api_78dk_web_risk_addFinalProcess(self):
     """
     Time       :2019-04-23
     author     : 罗林
     desc       :终审-保存处理结果
     """
     loan_order_uuid, order_main_state, order_sub_state, state = eq.get_info(
         'loan_order', 'loan_order_uuid,order_main_state,order_sub_state,state')
     eq.update_order(loan_order_uuid, 'order_main_state="SHJDXS03"')
     rs = ew.test_api_78dk_web_risk_addFinalProcess(examineresult='SHJDZS01', loanorderuuid=loan_order_uuid,
                                                    remark='')
     ass.verity(json.loads(rs)['code'], "10000")
     eq.delete_info('loan_finance', 'loan_order_uuid="{}"'.format(loan_order_uuid))
     eq.delete_info('process_examine', 'loan_order_uuid="{}"'.format(loan_order_uuid))
 def test_010_api_78dk_web_loan_base_assignOtherStore(self):
     """
       Time       :2019-04-24
       author     : 罗林
       desc       :分配到其它门店
     """
     loanuuid, businessperson, state = eq.get_info(
         'loan_order', 'loan_order_uuid,user_name,order_main_state')
     old_storeuuid = eq.get_info('loan_order', 'store_uuid',
                                 'loan_order_uuid="{}"'.format(loanuuid))
     rs = ew.test_api_78dk_web_loan_base_assignOtherStore(
         storeuuid='68c5720686e942a5a990a04b5c4c0736', loanuuid=loanuuid)
     ass.verity(json.loads(rs)['code'], "10000")
     eq.update_order(loanuuid, 'store_uuid="{}"'.format(old_storeuuid))
 def test_001_api_78dk_web_risk_addSecondProcess(self):
     """
     Time       :2019-04-23
     author     : 罗林
     desc       :信审-保存处理结果
     """
     loan_order_uuid, order_main_state, order_sub_state, state = eq.get_info(
         'loan_order', 'loan_order_uuid,order_main_state,order_sub_state,state')
     eq.update_order(loan_order_uuid, 'order_main_state="SHJDPS02"')
     rs = ew.test_api_78dk_web_risk_addSecondProcess(examineresult=1000, examineamount='项目风险等级',
                                                     loanorderuuid=loan_order_uuid, examineinfo='SHJDXS01',
                                                     remark='')
     ass.verity(json.loads(rs)['code'], "10000")
     eq.update_order(loan_order_uuid, 'order_main_state="{}"'.format(order_main_state),
                     'order_sub_state="{}"'.format(order_sub_state), 'state="{}"'.format(state))
     eq.delete_info('loan_finance', 'loan_order_uuid="{}"'.format(loan_order_uuid))
     eq.delete_info('process_examine', 'loan_order_uuid="{}"'.format(loan_order_uuid))