@Select("SELECT CASE WHEN COUNT(*) > 1 THEN 'true' ELSE 'false' END AS has_duplicate FROM score_management WHERE annual_compid = #{id} GROUP BY score")
Booleantongfenfupingiscftd(Stringid);
@Select("SELECT CASE WHEN COUNT(*) > 1 THEN 'true' ELSE 'false' END AS has_duplicate FROM score_persion WHERE annual_compid = #{id} GROUP BY score")
@Select("SELECT COUNT(DISTINCT score) AS unique_scores FROM score_management WHERE annual_compid = #{id} ")