Переглянути джерело

技能分匹配规则时降级

mingfu 2 днів тому
батько
коміт
3dd91972f9

+ 4 - 0
ie-admin/src/main/java/com/ruoyi/web/service/VoluntaryService.java

@@ -269,6 +269,10 @@ public class VoluntaryService {
         cond.put("examineeType", examType);
 
         List<AEnrollScore> enrollScoreList = aEnrollScoreMapper.selectListByRuleCond(cond);
+        if (CollectionUtils.isEmpty(enrollScoreList) && cond.containsKey("majorGroup")) {
+            cond.put("majorGroup", "");
+            enrollScoreList = aEnrollScoreMapper.selectListByRuleCond(cond);
+        }
         List<VoluntaryDto.AIRenderRule> ruleList = Lists.newArrayList();
         Set<String> existItemSet  = Sets.newHashSet();
         String vt;