master #1

Merged
Echo merged 4 commits from master into dev 2025-08-20 01:51:52 +00:00
Showing only changes of commit ffed64b0b9 - Show all commits

View File

@@ -541,9 +541,17 @@ def photo_review(pk_phhd):
def main():
while 1:
session = MysqlSession()
# phhds = (session.query(ZxPhhd.pk_phhd)
# .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
# .filter(ZxPhhd.exsuccess_flag == "1")
# .filter(ZxPhrec.pk_phrec.isnot(None))
# .order_by(ZxPhhd.priority_num.desc())
# .distinct().limit(PHHD_BATCH_SIZE).all())
phhds = (session.query(ZxPhhd.pk_phhd)
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
.filter(ZxPhhd.exsuccess_flag == "1")
.filter(ZxPhhd.exsuccess_flag == "9")
.filter(ZxPhhd.paint_flag == "0")
.filter(ZxPhhd.checktime > "2025-08-19 8:30")
.filter(ZxPhrec.pk_phrec.isnot(None))
.order_by(ZxPhhd.priority_num.desc())
.distinct().limit(PHHD_BATCH_SIZE).all())