浏览代码

技能分匹配规则时降级

mingfu 2 天之前
父节点
当前提交
3dd91972f9
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ie-admin/src/main/java/com/ruoyi/web/service/VoluntaryService.java

+ 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;