In all cases where by law the punishment is affected by the jury recommending the accused to the mercy of the court, and a plea of guilty is accepted with the approval of the court, the accused shall be sentenced in like manner as if the jury in a trial had recommended him to the mercy of the court.
S.C. Code § 17-25-130