A human resource manager has become the first person on the Chinese mainland to be jailed for sexual harassment.