from sqlalchemy import funcmessage_count = self.db.query(func.count(Message.uid)).filter(Message.uid == self.uid, Message.msg_readstatus == MessageStatus.un_read.value).scalar()
本文共 177 字,大约阅读时间需要 1 分钟。
from sqlalchemy import funcmessage_count = self.db.query(func.count(Message.uid)).filter(Message.uid == self.uid, Message.msg_readstatus == MessageStatus.un_read.value).scalar()
转载地址:http://swyqa.baihongyu.com/