A Thai general, police officers and local politicians were among dozens jailed for human trafficking on Wednesday, many handed decades-long sentences, at a mass trial exposing official complicity in the grim trade in Rohingya and Bangladeshi migrants.