A generalized Clifford theorem of semigroups