|
|
|
@ -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])
|
|
|
|
|