涂抹和识别时增加优先级概念

This commit is contained in:
2024-09-09 11:20:51 +08:00
parent 914f2cc32b
commit 4cce7e8ef1
3 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
x-env: x-env:
&template &template
image: fcb_photo_review:1.14.3 image: fcb_photo_review:1.14.4
restart: always restart: always
x-review: x-review:

View File

@@ -258,6 +258,7 @@ def main():
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True) .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
.filter(ZxPhhd.paint_flag == "1") .filter(ZxPhhd.paint_flag == "1")
.filter(ZxPhrec.pk_phrec.isnot(None)) .filter(ZxPhrec.pk_phrec.isnot(None))
.order_by(ZxPhhd.priority_num.desc())
.distinct().limit(PHHD_BATCH_SIZE).all()) .distinct().limit(PHHD_BATCH_SIZE).all())
# 将状态改为正在涂抹中 # 将状态改为正在涂抹中
pk_phhd_values = [phhd.pk_phhd for phhd in phhds] pk_phhd_values = [phhd.pk_phhd for phhd in phhds]

View File

@@ -507,6 +507,7 @@ def main():
.join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True) .join(ZxPhrec, ZxPhhd.pk_phhd == ZxPhrec.pk_phhd, isouter=True)
.filter(ZxPhhd.exsuccess_flag == "1") .filter(ZxPhhd.exsuccess_flag == "1")
.filter(ZxPhrec.pk_phrec.isnot(None)) .filter(ZxPhrec.pk_phrec.isnot(None))
.order_by(ZxPhhd.priority_num.desc())
.distinct().limit(PHHD_BATCH_SIZE).all()) .distinct().limit(PHHD_BATCH_SIZE).all())
# 将状态改为正在识别中 # 将状态改为正在识别中
pk_phhd_values = [phhd.pk_phhd for phhd in phhds] pk_phhd_values = [phhd.pk_phhd for phhd in phhds]