|
|
@ -112,18 +112,17 @@ public class ModelIndexServiceImpl extends ServiceImpl<ModelIndexMapper, ModelIn
|
|
|
|
index.setCaseTypeName(comDictionaryService.getName(dicts, "case_type", index.getCaseType()));
|
|
|
|
index.setCaseTypeName(comDictionaryService.getName(dicts, "case_type", index.getCaseType()));
|
|
|
|
//原子指标
|
|
|
|
//原子指标
|
|
|
|
String judgeLogic = index.getJudgeLogic();
|
|
|
|
String judgeLogic = index.getJudgeLogic();
|
|
|
|
List<String> ids = new ArrayList<>();
|
|
|
|
Set<String> ids = new HashSet<>();
|
|
|
|
IndexRule indexRule = index.getIndexRule();
|
|
|
|
IndexRule indexRule = index.getIndexRule();
|
|
|
|
if (indexRule != null) {
|
|
|
|
if (indexRule != null) {
|
|
|
|
Set<String> idSet = new HashSet<>();
|
|
|
|
|
|
|
|
List<RuleConditionGroup> ruleConditionGroupList = indexRule.getRuleConditionGroupList();
|
|
|
|
List<RuleConditionGroup> ruleConditionGroupList = indexRule.getRuleConditionGroupList();
|
|
|
|
for (RuleConditionGroup ruleConditionGroup : ruleConditionGroupList) {
|
|
|
|
for (RuleConditionGroup ruleConditionGroup : ruleConditionGroupList) {
|
|
|
|
List<RuleCondition> ruleConditionList = ruleConditionGroup.getRuleConditionList();
|
|
|
|
List<RuleCondition> ruleConditionList = ruleConditionGroup.getRuleConditionList();
|
|
|
|
for (RuleCondition ruleCondition : ruleConditionList) {
|
|
|
|
for (RuleCondition ruleCondition : ruleConditionList) {
|
|
|
|
idSet.add(ruleCondition.getAtomicIndexId());
|
|
|
|
ids.add(ruleCondition.getAtomicIndexId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<ModelAtomicIndex> atomicIndexList = modelAtomicIndexService.selectBatchIds(idSet.stream().toList());
|
|
|
|
List<ModelAtomicIndex> atomicIndexList = modelAtomicIndexService.selectBatchIds(ids.stream().toList());
|
|
|
|
index.setAtomicIndexList(atomicIndexList);
|
|
|
|
index.setAtomicIndexList(atomicIndexList);
|
|
|
|
} else if (StringUtils.isNotEmpty(judgeLogic)) {
|
|
|
|
} else if (StringUtils.isNotEmpty(judgeLogic)) {
|
|
|
|
List<JudgeLogic> logic = JSONUtil.toList(judgeLogic, JudgeLogic.class);
|
|
|
|
List<JudgeLogic> logic = JSONUtil.toList(judgeLogic, JudgeLogic.class);
|
|
|
@ -133,7 +132,7 @@ public class ModelIndexServiceImpl extends ServiceImpl<ModelIndexMapper, ModelIn
|
|
|
|
ids.add(atomic.getAtomicIndex());
|
|
|
|
ids.add(atomic.getAtomicIndex());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<ModelAtomicIndex> atomicIndexList = modelAtomicIndexService.selectBatchIds(ids);
|
|
|
|
List<ModelAtomicIndex> atomicIndexList = modelAtomicIndexService.selectBatchIds(ids.stream().toList());
|
|
|
|
index.setAtomicIndexList(atomicIndexList);
|
|
|
|
index.setAtomicIndexList(atomicIndexList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
index.setAtomicIndexNum(ids.size());
|
|
|
|
index.setAtomicIndexNum(ids.size());
|
|
|
|