|
@@ -156,17 +156,20 @@ public class IndexConfigFacade extends IndexConfigServiceImpl {
|
|
|
conceptId.add(e.getConceptId());
|
|
|
}
|
|
|
|
|
|
- QueryWrapper<IndexConfig> IndexConfigQuery = new QueryWrapper<>();
|
|
|
-
|
|
|
- IndexConfigQuery
|
|
|
- .eq("disease_id", indexConfigListVO.getDiseaseId())
|
|
|
- .in("concept_id", conceptId);
|
|
|
- List<IndexConfig> dataUnique = list(IndexConfigQuery);
|
|
|
- if (ListUtil.isNotEmpty(dataUnique)) {
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
- "该'" + dataUnique.get(0).getConceptId() + "'已存在");
|
|
|
+ if(ListUtil.isNotEmpty(conceptId)){
|
|
|
+ QueryWrapper<IndexConfig> IndexConfigQuery = new QueryWrapper<>();
|
|
|
+
|
|
|
+ IndexConfigQuery
|
|
|
+ .eq("disease_id", indexConfigListVO.getDiseaseId())
|
|
|
+ .in("concept_id", conceptId);
|
|
|
+ List<IndexConfig> dataUnique = list(IndexConfigQuery);
|
|
|
+ if (ListUtil.isNotEmpty(dataUnique)) {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ "该'" + dataUnique.get(0).getConceptId() + "'已存在");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
List<IndexConfig> IndexConfigLsit = new ArrayList<IndexConfig>();
|
|
|
List<IndexConfigVO> data = indexConfigListVO.getIndexConfigData();
|
|
|
Date optDate = DateUtil.now();
|