backend/src/main/java/com/tourguide/modules/user/mapper/GuideUserMapper.java
@@ -15,7 +15,8 @@ @Update("UPDATE guide_user SET status = 0, updated_at = NOW() " + "WHERE id = #{guideId} AND deleted = 0 AND status = 1 " + "AND auto_disable_whitelisted = 0 AND accepted_order_count >= #{orderThreshold} " + "AND COALESCE(auto_disable_whitelisted, 0) = 0 " + "AND accepted_order_count >= #{orderThreshold} " + "AND rating > 0 AND rating <= #{ratingThreshold}") int autoDisableIfEligible(@Param("guideId") Long guideId, @Param("orderThreshold") Integer orderThreshold,