public abstract class ExecutorServerBase { public RuleResult getUserList(RuleParam rule) { RuleResult result = new RuleResult(); List<String> userIdList = setUserList(rule); if (CollectionUtils.isEmpty(userIdList)) { result.setHasException(true); return result; } result.setHasException(userIdList.size() > 1); result.setUserIdList(userIdList); return result; } public abstract List<String> setUserList(RuleParam rule); }