Ejemplo n.º 1
0
def get_mysql_data():
    """
	从数据库查询参数,返回
	:return:
	"""
    mysql_db = My_Pymysql()
    sql = "SELECT mch_jrn_nbr,amt FROM merchant_order WHERE mch_nbr = %s and ord_status = %s"
    data = mysql_db.get_one(sql, ("CNZHRUIDEV", "S"))
    return data
 def setUpClass(cls):
     # main()
     cls.data = My_Pymysql()
 def setUpClass(cls):
     cls.data = My_Pymysql()