单位的修改

dev_local
cxt 6 years ago
parent acc33aec5b
commit 295f7a1c2b

@ -1356,6 +1356,7 @@ end
after_dep = Department.where(:school_id => params[:school_id], :name => department.name).first
if after_dep
UserExtensions.where(:school_id => params[:applied_id], :department_id => department.id).update_all(:department_id => after_dep.id)
department.apply_add_departments.destroy_all
department.destroy
else
department.apply_add_departments.update_all(:school_id => params[:school_id])

Loading…
Cancel
Save