\"fix: add missing imports for db and MaterialBase in base.py\"
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user