|
@@ -14,6 +14,8 @@ import java.util.*;
|
|
|
public class RankRouter {
|
|
|
|
|
|
private LinkedHashMap<String, RankService> strategyMap;
|
|
|
+ @Autowired
|
|
|
+ private RankStrategy4Alpha rankStrategy4Alpha;
|
|
|
|
|
|
private static final Map<String, Class<? extends RankService>> STRATEGY_CLASSES = new HashMap<>();
|
|
|
|
|
@@ -27,7 +29,6 @@ public class RankRouter {
|
|
|
STRATEGY_CLASSES.put("567", RankStrategy4RegionMergeModelV567.class);
|
|
|
STRATEGY_CLASSES.put("569", RankStrategy4RegionMergeModelV569.class);
|
|
|
STRATEGY_CLASSES.put("568", RankStrategy4RegionMergeModelV568.class);
|
|
|
- STRATEGY_CLASSES.put("9999", RankStrategy4Alpha.class);
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@@ -45,6 +46,11 @@ public class RankRouter {
|
|
|
public RankResult rank(RankParam param) {
|
|
|
Set<String> abExpCodes = param.getAbExpCodes();
|
|
|
if (CollectionUtils.isNotEmpty(abExpCodes)) {
|
|
|
+
|
|
|
+ if (abExpCodes.contains("9999")) {
|
|
|
+ return rankStrategy4Alpha.rank(param);
|
|
|
+ }
|
|
|
+
|
|
|
for (Map.Entry<String, RankService> entry : strategyMap.entrySet()) {
|
|
|
if (abExpCodes.contains(entry.getKey())) {
|
|
|
//log.info("rank strategies {} {}", entry.getKey(), entry.getValue().getClass().getSimpleName());
|