By considering the nonperturbative QCD effect via quark and gluon condensates, the confinement terms in effective q-q potential can automatically be given. A potential in the form of (-2a s /3r) + ^Z^Lo a 2n+i r 2n+1 + (Yukawa-type terms) where positive and negative signs appear alternatively in O2n+i 's is proposed. To testify the validity range of QCD sum rules, the experimental baryon spectrum is fitted and the values of