|
|
@@ -32,9 +32,9 @@ public interface OrgDao extends JpaRepository<Org,Long>,JpaSpecificationExecutor
|
|
|
@Query("from Org o where type=:type and majorArea=:majorArea and status=:status and publish=2 order By createTime desc" )
|
|
|
List<Org> findByTypeAndMajorArea(@Param("type") Integer type,@Param("majorArea")Integer majorArea,@Param("status")Integer status);
|
|
|
|
|
|
- //取出草稿状态的机构
|
|
|
- @Query("from Org o where publish=1 and uuid=:uuid")
|
|
|
- Org findDraft(@Param("uuid") Long uuid);
|
|
|
+ //根据UUID取出唯一的机构信息
|
|
|
+ @Query("from Org o where uuid=:uuid")
|
|
|
+ Org findOne(@Param("uuid") Long uuid);
|
|
|
|
|
|
Page<Org> findAll(Pageable pageable);
|
|
|
|