Comprehending the charge transfer mechanism at the semiconductor interfaces is crucial for enhancing the electronic and optical performance of sensing devices. Yet, relying solely on single signal acquisition methods at the interface hinders a comprehensive understanding of the charge transfer under optical excitation. Herein, we present an integrated photoelectrochemical surface-enhanced Raman spectroscopy (PEC-SERS) platform based on quantum dots/metal−organic framework (CdTe/Yb-TCPP) nanocomposites for investigating the charge transfer mechanism under photoexcitation in multiple dimensions. This integrated platform allows simultaneous PEC and SERS measurements with a 532 nm laser. The obtained photocurrent and Raman spectra of the CdTe/Yb-TCPP nanocomposites are simultaneously influenced by variable bias voltages, and the correlation between them enables us to predict the charge transfer pathway. Moreover, we integrate gold nanorods (Au NRs) into the PEC-SERS system by using magnetic separation and DNA biometrics to construct a biosensor for patulin detection. This biosensor demonstrates the voltage-driven ON/OFF switching of PEC and SERS signals, a phenomenon attributed to the plasmon resonance effect of Au NRs at different voltages, thereby influencing charge transfer. The detection of patulin in apples verified the applicability of the biosensor. The study offers an efficient approach to understanding semiconductor−metal interfaces and presents a new avenue for designing high-performance biosensors.