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);
}

View File

@ -109,6 +109,7 @@ public class UserController {
return success(new PageResult<>(userList, pageResult.getTotal()));
}
// TODO @芋艿:看看这里怎么统一调整下;客户的选择组件;
@GetMapping("/all")
@Operation(summary = "查询所有用户列表")
public CommonResult<List<UserPageItemRespVO>> getAllUser() {