Power generation and drainage dual-purpose unit