Leewinner1
Leewinner1
When dealing with relational models,sqlalchemy only needs to define relationships on one side,sqlmodel needs to define relationships on both sides, and the complexity of the model class is very difficult...
解决了通过重写get_select方法,调用父类的get_select方法能得到 当前模型类的sql语句,在通过返回外连接到需要关联的表即可,但是自关联关系的模型类,我目前还没有办法解决如何定义?如何查询? 
是的支付成功后,在支付宝页面点击完成-->可以拿到同步返回结果,如果直接从后台进入,无法拿到同步结果,这个时候需要在前端做轮询或者 socketio 来检查是否完成支付了,要是有心的话可以监听后台切换的生命周期来处理