机构树形排序
This commit is contained in:
@@ -54,7 +54,7 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
|
||||
* 查询根机构
|
||||
* @return List<TsInstitution>
|
||||
*/
|
||||
@Select("select * from ts_institution where parent_id not in (select id from ts_institution)")
|
||||
@Select("select * from ts_institution where parent_id not in (select id from ts_institution) order by name")
|
||||
List<TsInstitution> selectRoot();
|
||||
|
||||
@Select("select * from ts_institution order by rand() limit 1")
|
||||
|
||||
Reference in New Issue
Block a user