From c86da38a7019446132670ed7a082c8e68b3cb9cf Mon Sep 17 00:00:00 2001 From: DXC Date: Tue, 12 May 2026 13:36:18 +0800 Subject: [PATCH] =?UTF-8?q?chore(pre-change):=20=E5=87=86=E5=A4=87?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=BA=E5=BA=93=E5=AE=A1=E6=89=B9=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E9=80=9A=E7=9F=A5=E9=80=BB=E8=BE=91=E4=B8=8E=E8=87=AA?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory-backend/app/services/outbound_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory-backend/app/services/outbound_service.py b/inventory-backend/app/services/outbound_service.py index 0814409..2d3da1b 100644 --- a/inventory-backend/app/services/outbound_service.py +++ b/inventory-backend/app/services/outbound_service.py @@ -255,8 +255,8 @@ class OutboundService: # ★ 出库后检查低库存预警 try: - from app.utils.stock_alert import check_and_alert - check_and_alert(stock_record.base_id) + from app.services.inventory_task import InventoryWarningService + InventoryWarningService.check_and_send_warning_emails() except Exception as e: current_app.logger.warning(f"⚠️ 低库存预警检查失败: {e}")