删除学校应该更新认证

dev_aliyun
daiao 6 years ago
parent 8227a14960
commit e0a18f44f8

@ -1870,6 +1870,7 @@ end
# 删除学校的用户
users = UserExtensions.where("school_id = #{applied_school.school_id}")
User.where(id: users.map(&:user_id)).update_all(profile_completed: false)
# 申请了职业认证的用户撤销申请
apply_user_auth = ApplyUserAuthentication.where(:user_id => users.map(&:user_id), :auth_type => 2, :status => 0)

Loading…
Cancel
Save