|
|
@@ -33,8 +33,8 @@ public interface OrgDao extends JpaRepository<Org,Long>,JpaSpecificationExecutor
|
|
|
List<Org> findByTypeAndMajorArea(@Param("type") Integer type,@Param("majorArea")Integer majorArea,@Param("status")Integer status);
|
|
|
|
|
|
//取出草稿状态的机构
|
|
|
- @Query("from Org o where publish=1")
|
|
|
- Org findDraft();
|
|
|
+ @Query("from Org o where publish=1 and uuid=:uuid")
|
|
|
+ Org findDraft(@Param("uuid") Long uuid);
|
|
|
|
|
|
Page<Org> findAll(Pageable pageable);
|
|
|
|