feat: add material matching logic for discrete material plan cleaner
- Add db/materials_to_delete.py for querying materials to delete by manager - Add manager_name parameter to DiscreteMaterialPlanCleaner - Implement material keyword matching logic in process_order - Update file paths from orderID.txt to ProductionID.txt Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,12 +10,13 @@ def main():
|
||||
cleaner = DiscreteMaterialPlanCleaner(
|
||||
username="BLDpengqiangqiang",
|
||||
password="Cqbld123456.",
|
||||
headless=False,
|
||||
manager_name="彭羽",
|
||||
headless=True,
|
||||
verbose=True
|
||||
)
|
||||
|
||||
# 设置文件路径
|
||||
order_id_file = os.path.join(os.path.dirname(__file__), "orderID.txt")
|
||||
order_id_file = os.path.join(os.path.dirname(__file__), "ProductionID.txt")
|
||||
|
||||
# 执行清理
|
||||
cleaner.clean(order_id_file)
|
||||
|
||||
Reference in New Issue
Block a user