diff --git a/inventory-backend/app/api/v1/inbound/base.py b/inventory-backend/app/api/v1/inbound/base.py index 2660e0a..50aa051 100644 --- a/inventory-backend/app/api/v1/inbound/base.py +++ b/inventory-backend/app/api/v1/inbound/base.py @@ -1,8 +1,10 @@ # 文件路径: app/api/v1/inbound/base.py from flask import Blueprint, request, jsonify, send_file, g +from app.extensions import db from app.services.inbound.base_service import MaterialBaseService from app.utils.decorators import login_required, permission_required, audit_log +from app.models.base import MaterialBase, MaterialWarningSetting import traceback import datetime import json @@ -348,8 +350,6 @@ def batch_set_warning(): if not isinstance(data, list): return jsonify({"code": 400, "msg": "请求体必须为数组"}) - from app.models.base import MaterialWarningSetting - updated_count = 0 created_count = 0