|
@@ -1272,7 +1272,7 @@ def delete_all_goods_arts():
|
|
|
# handlerFolderDelete(limit_path, list(all_goods_art_nos), False)
|
|
# handlerFolderDelete(limit_path, list(all_goods_art_nos), False)
|
|
|
|
|
|
|
|
# 3. 同步线上状态 (如果需要)
|
|
# 3. 同步线上状态 (如果需要)
|
|
|
- settings.syncBatchPhotoRecordDelete({"goods_art_no": item}, action_type=2)
|
|
|
|
|
|
|
+ settings.syncBatchPhotoRecordDelete()
|
|
|
# 4. 批量删除数据库记录
|
|
# 4. 批量删除数据库记录
|
|
|
# 使用 deleteConditions 一次性删除所有符合条件的记录,比循环删除效率高
|
|
# 使用 deleteConditions 一次性删除所有符合条件的记录,比循环删除效率高
|
|
|
photos.deleteConditions(session, conditions={"delete_time": None})
|
|
photos.deleteConditions(session, conditions={"delete_time": None})
|