|
|
|
@ -501,8 +501,8 @@ class ShixunsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# TODO: 目前实训只做软删除.
|
|
|
|
|
def destroy
|
|
|
|
|
# apply_records = ApplyAction.where(container_id: @shixun.id, container_type: "ApplyShixun")
|
|
|
|
|
# apply_records.delete_all if apply_records
|
|
|
|
|
apply_records = ApplyAction.where(container_id: @shixun.id, container_type: "ApplyShixun")
|
|
|
|
|
apply_records.delete_all if apply_records
|
|
|
|
|
# HomeworkCommonShixuns.where(shixun_id: @shixun).delete_all
|
|
|
|
|
# @shixun.destroy
|
|
|
|
|
@shixun.update_column(:status, -1)
|
|
|
|
|