|
@@ -6,6 +6,7 @@ import org.diagbot.bigdata.dao.model.ResultMappingFilter;
|
|
import org.diagbot.bigdata.util.BigDataConstants;
|
|
import org.diagbot.bigdata.util.BigDataConstants;
|
|
import org.diagbot.common.work.FeatureRate;
|
|
import org.diagbot.common.work.FeatureRate;
|
|
import org.diagbot.nlp.feature.FeatureType;
|
|
import org.diagbot.nlp.feature.FeatureType;
|
|
|
|
+import org.diagbot.nlp.util.Constants;
|
|
import org.diagbot.nlp.util.NegativeEnum;
|
|
import org.diagbot.nlp.util.NegativeEnum;
|
|
import org.diagbot.nlp.util.NlpCache;
|
|
import org.diagbot.nlp.util.NlpCache;
|
|
|
|
|
|
@@ -74,10 +75,18 @@ public class ResultDataProxy {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
featureList.add(featureRate);
|
|
featureList.add(featureRate);
|
|
- if (cursor < searchData.getLength()) {
|
|
|
|
- cursor++;
|
|
|
|
- } else {
|
|
|
|
- break;
|
|
|
|
|
|
+ if (!featureType.equals(Constants.feature_type_diag)) {
|
|
|
|
+ if (cursor < searchData.getLength()) {
|
|
|
|
+ cursor++;
|
|
|
|
+ } else {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ } else { //诊断最多返回5个
|
|
|
|
+ if (cursor < 5) {
|
|
|
|
+ cursor++;
|
|
|
|
+ } else {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|