删除页面报500

dev_aliyun
daiao 5 years ago
parent 78f1d0610f
commit a529856274

@ -1746,7 +1746,7 @@ end
# 删除
def delete_applied_departments
transaction do
ActiveRecord::Base.transaction do
applied_department = ApplyAddDepartment.find params[:depart_id]
applied_message = AppliedMessage.where(:applied_id => applied_department.id, :applied_type => "ApplyAddDepartment")
applied_message.update_all(:status => 3)

Loading…
Cancel
Save