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}")