fix: 修改部门
parent
a1f6946fc4
commit
236d4b566b
|
@ -181,14 +181,15 @@ public class PromoterServiceImpl implements PromoterService {
|
|||
if (CollUtil.isEmpty(importUsers)) {
|
||||
throw exception(PROMOTER_IMPORT_LIST_IS_EMPTY);
|
||||
}
|
||||
PromoterImportRespVO respVO = PromoterImportRespVO.builder().createUsernames(new ArrayList<>())
|
||||
.updateUsernames(new ArrayList<>()).failureUsernames(new LinkedHashMap<>()).build();
|
||||
Set<String> collect = importUsers.stream().map(PromoterImportExcelVO::getMobile).collect(Collectors.toSet());
|
||||
List<MemberUserDO> list = memberUserService.getByMobileList(collect);
|
||||
if (!CollectionUtils.isEmpty(list)) {
|
||||
List<String> collect1 = list.stream().map(MemberUserDO::getMobile).collect(Collectors.toList());
|
||||
throw new ServiceException(200, "电话号码:" + collect1 + "重复");
|
||||
respVO.getFailureUsernames().put("电话号码:" + collect1, "重复");
|
||||
}
|
||||
PromoterImportRespVO respVO = PromoterImportRespVO.builder().createUsernames(new ArrayList<>())
|
||||
.updateUsernames(new ArrayList<>()).failureUsernames(new LinkedHashMap<>()).build();
|
||||
|
||||
List<DeptRespDTO> deptRespDTOList = deptApi.getDeptList();
|
||||
Map<String, DeptRespDTO> nameList = deptRespDTOList.stream().collect(toMap(DeptRespDTO::getParentOrganizationName, value -> value, (value1, value2) -> value1));
|
||||
importUsers.forEach(importUser -> {
|
||||
|
|
Loading…
Reference in New Issue