浏览代码

1、术语关联映射-分页查询

zhaops 3 年之前
父节点
当前提交
e062e13c35
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/main/java/com/diagbot/facade/MappingConfigFacade.java

+ 10 - 2
src/main/java/com/diagbot/facade/MappingConfigFacade.java

@@ -197,7 +197,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
                     }
                     }
                 } else {
                 } else {
                     //没有启用禁用记录时返回空而不是全量
                     //没有启用禁用记录时返回空而不是全量
-                    mappingConfigPageVO.setConceptIds(Arrays.asList(new Long[] { -1L }));
+                    if (mappingConfigPageVO.getStatus().equals(StatusEnum.Disable.getKey())) {
+                        mappingConfigPageVO.setConceptIds(Arrays.asList(new Long[] { -1L }));
+                    } else if (mappingConfigPageVO.getStatus().equals(StatusEnum.Enable.getKey())) {
+                        mappingConfigPageVO.setNotInConceptIds(Arrays.asList(new Long[] { -1L }));
+                    }
                 }
                 }
             }
             }
 
 
@@ -219,7 +223,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
                     }
                     }
                 } else {
                 } else {
                     //没有启用禁用记录时返回空而不是全量
                     //没有启用禁用记录时返回空而不是全量
-                    mappingConfigPageVO.setFormConceptIds(Arrays.asList(new Long[] { -1L }));
+                    if (mappingConfigPageVO.getFormStatus().equals(StatusEnum.Disable.getKey())) {
+                        mappingConfigPageVO.setFormConceptIds(Arrays.asList(new Long[] { -1L }));
+                    } else if (mappingConfigPageVO.getFormStatus().equals(StatusEnum.Enable.getKey())) {
+                        mappingConfigPageVO.setNotInFormConceptIds(Arrays.asList(new Long[] { -1L }));
+                    }
                 }
                 }
             }
             }
         }
         }