From 249430246ddad279344f6dfd97efe78fa8e28028 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sat, 6 Jul 2024 16:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=A4=9A=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/photo_review.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index b0bfffc..7c19bb5 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -1,4 +1,3 @@ -import concurrent.futures import json import logging import math @@ -416,11 +415,14 @@ def photo_review(pk_phhd): elif phrec.cRectype == "4": cost_list.append(phrec) - with concurrent.futures.ThreadPoolExecutor() as executor: - executor.submit(settlement_task, pk_phhd, settlement_list) - executor.submit(discharge_task, pk_phhd, discharge_record) - # executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record) - executor.submit(cost_task, pk_phhd, cost_list) + # with concurrent.futures.ThreadPoolExecutor() as executor: + # executor.submit(settlement_task, pk_phhd, settlement_list) + # executor.submit(discharge_task, pk_phhd, discharge_record) + # # executor.submit(settlement_and_discharge_task, pk_phhd, settlement_list, discharge_record) + # executor.submit(cost_task, pk_phhd, cost_list) + settlement_task(pk_phhd, settlement_list) + discharge_task(pk_phhd, discharge_record) + cost_task(pk_phhd, cost_list) def main():