AB表内连接
query = database.session().query(models.A, models.B)
query = query.join(models.B, models.B.xx== models.A.xx).filter(models.a.xx== '20180615-20180621').filter(models.b.xx= 'haha')
data = query.all()
AB表内连接
query = database.session().query(models.A, models.B)
query = query.join(models.B, models.B.xx== models.A.xx).filter(models.a.xx== '20180615-20180621').filter(models.b.xx= 'haha')
data = query.all()