crm:code review 配置管理

This commit is contained in:
YunaiV
2023-11-18 22:12:12 +08:00
parent 90f135ad95
commit 8c9c91f0ca
29 changed files with 50 additions and 165 deletions

View File

@ -6,7 +6,6 @@ import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* 部门 API 接口
@ -46,7 +45,7 @@ public interface DeptApi {
* @param ids 部门编号数组
* @return 部门 Map
*/
default Map<Long, DeptRespDTO> getDeptMap(Set<Long> ids) {
default Map<Long, DeptRespDTO> getDeptMap(Collection<Long> ids) {
List<DeptRespDTO> list = getDeptList(ids);
return CollectionUtils.convertMap(list, DeptRespDTO::getId);
}