|
@@ -179,7 +179,8 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
|
|
|
ConceptVO conceptVO = new ConceptVO();
|
|
|
conceptVO.setSource(-1);
|
|
|
conceptVO.setIds(dbConceptIds);
|
|
|
- conceptVO.setStatus(mappingConfigPageVO.getStatus());
|
|
|
+ //conceptVO.setStatus(mappingConfigPageVO.getStatus());
|
|
|
+ conceptVO.setStatus(StatusEnum.Disable.getKey());
|
|
|
RespDTO<List<IndexBatchDTO>> conceptRespDTO = null;
|
|
|
if (ListUtil.isEmpty(conceptIds)
|
|
|
&& mappingConfigPageVO.getStatus() != null
|
|
@@ -189,7 +190,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
|
|
|
conceptIds = conceptRespDTO.data.stream().map(IndexBatchDTO::getId).collect(Collectors.toList());
|
|
|
}
|
|
|
if (ListUtil.isNotEmpty(conceptIds)) {
|
|
|
- mappingConfigPageVO.setConceptIds(conceptIds);
|
|
|
+ if (mappingConfigPageVO.getStatus().equals(StatusEnum.Disable.getKey())) {
|
|
|
+ mappingConfigPageVO.setConceptIds(conceptIds);
|
|
|
+ } else if (mappingConfigPageVO.getStatus().equals(StatusEnum.Enable.getKey())) {
|
|
|
+ mappingConfigPageVO.setNotInConceptIds(conceptIds);
|
|
|
+ }
|
|
|
} else {
|
|
|
//没有启用禁用记录时返回空而不是全量
|
|
|
mappingConfigPageVO.setConceptIds(Arrays.asList(new Long[] { -1L }));
|
|
@@ -207,7 +212,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
|
|
|
|
|
|
}
|
|
|
if (ListUtil.isNotEmpty(formConceptIds)) {
|
|
|
- mappingConfigPageVO.setFormConceptIds(formConceptIds);
|
|
|
+ if (mappingConfigPageVO.getFormStatus().equals(StatusEnum.Disable.getKey())) {
|
|
|
+ mappingConfigPageVO.setFormConceptIds(formConceptIds);
|
|
|
+ } else if (mappingConfigPageVO.getFormStatus().equals(StatusEnum.Enable.getKey())) {
|
|
|
+ mappingConfigPageVO.setNotInFormConceptIds(formConceptIds);
|
|
|
+ }
|
|
|
} else {
|
|
|
//没有启用禁用记录时返回空而不是全量
|
|
|
mappingConfigPageVO.setFormConceptIds(Arrays.asList(new Long[] { -1L }));
|