|
@@ -28,4 +28,7 @@ public interface OrgRepo extends JpaRepository<Org,Long>,QueryByExampleExecutor<
|
|
|
|
|
|
@Query(nativeQuery = true,value = "select *from ecs_core_org where parent_id=:parentId and code=:code and enable = 1")
|
|
|
Org findFirstByParentIdAndCode(@Param("parentId") Long parentId, @Param("code")String code);
|
|
|
+
|
|
|
+ @Query(nativeQuery = true,value = "select * from ecs_core_org t where t.parent_id = 0 and t.enable = 1 order by t.id")
|
|
|
+ List<Org> findAllParentOrg();
|
|
|
}
|