Bridging the Gap between Chemical Reaction Pretraining and Conditional Molecule Generation with a Unified Model