feat: 修改数据库操作,将更新逻辑改为删除记录

This commit is contained in:
zhu-mengmeng 2025-07-19 16:57:45 +08:00
parent aa532ef4ec
commit e36d5475dd

View File

@ -679,8 +679,7 @@ class InspectionDAO:
""" """
try: try:
sql = """ sql = """
UPDATE wsbz_inspection_data DELETE FROM wsbz_inspection_data
SET is_deleted = TRUE
WHERE order_id = ? AND gc_note = ? AND tray_id = ? WHERE order_id = ? AND gc_note = ? AND tray_id = ?
""" """
params = (order_id, gc_note, tray_id) params = (order_id, gc_note, tray_id)