|
@@ -1,6 +1,5 @@
|
|
|
package cn.iocoder.yudao.module.system.service.dept;
|
|
|
|
|
|
-import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostPageReqVO;
|
|
|
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostSaveReqVO;
|
|
@@ -10,8 +9,6 @@ import org.springframework.lang.Nullable;
|
|
|
import java.util.Collection;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import static cn.iocoder.yudao.framework.common.util.collection.SetUtils.asSet;
|
|
|
-
|
|
|
/**
|
|
|
* 岗位 Service 接口
|
|
|
*
|
|
@@ -44,12 +41,10 @@ public interface PostService {
|
|
|
/**
|
|
|
* 获得岗位列表
|
|
|
*
|
|
|
- * @param ids 岗位编号数组。如果为空,不进行筛选
|
|
|
+ * @param ids 岗位编号数组
|
|
|
* @return 部门列表
|
|
|
*/
|
|
|
- default List<PostDO> getPostList(@Nullable Collection<Long> ids) {
|
|
|
- return getPostList(ids, asSet(CommonStatusEnum.ENABLE.getStatus(), CommonStatusEnum.DISABLE.getStatus()));
|
|
|
- }
|
|
|
+ List<PostDO> getPostList(@Nullable Collection<Long> ids);
|
|
|
|
|
|
/**
|
|
|
* 获得符合条件的岗位列表
|
|
@@ -58,7 +53,8 @@ public interface PostService {
|
|
|
* @param statuses 状态数组。如果为空,不进行筛选
|
|
|
* @return 部门列表
|
|
|
*/
|
|
|
- List<PostDO> getPostList(@Nullable Collection<Long> ids, @Nullable Collection<Integer> statuses);
|
|
|
+ List<PostDO> getPostList(@Nullable Collection<Long> ids,
|
|
|
+ @Nullable Collection<Integer> statuses);
|
|
|
|
|
|
/**
|
|
|
* 获得岗位分页列表
|