update school_staff ss left join sys_user su on su.id_ = ss.user_id_
set ss.status_ = if(#{status},0,9),ss.recovery_status_ = if(#{status},0,1),su.lock_flag_ = if(#{status},0,9)
where ss.school_id_ = #{cooperationOrganId} and ss.status_ in (0,9)
and ss.recovery_status_ = 1
and (ss.status_ = 0 or ss.status_ is null)
update sys_user set user_type_ = '' ,del_flag_ = 1 where id_ = #{userId}