Commit 61eb44e6 by huangjy

fixbug:长者导入,居家工作台

parent de677d03
......@@ -330,7 +330,7 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
);
Map<String, Map<String, TreeDTOVO>> parentIdName = treeList.stream().collect(Collectors.groupingBy(
TreeDTOVO::getParentId, Collectors.toMap(TreeDTOVO::getName, Function.identity())
TreeDTOVO::getParentId, Collectors.toMap(TreeDTOVO::getName, Function.identity(),(v1,v2) -> v2)
));
ExcelImportVo excelImportVo = ExcelValidatorUtil.validateMain(3, list, l -> {
......
......@@ -485,7 +485,7 @@ public class WorkStationServiceImpl implements WorkStationService {
dto.setOrgIds(orgIds);
}else {
List<PlatOrg> orgs = platOrgService.list(new QueryWrapper<PlatOrg>().lambda()
.eq(PlatOrg::getId, dto.getOrgIds()));
.in(PlatOrg::getId, dto.getOrgIds()));
List<String> orgIds = orgs.stream().filter(t->PlatOrgEnum.OrgTypeEnum.HOME.getValue().equals(t.getType()))
.map(PlatOrg::getId).collect(Collectors.toList());
if(orgIds.isEmpty()){
......
......@@ -249,7 +249,7 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
}
@Transactional
@Transactional(rollbackFor = Exception.class)
@Override
public String add(PlatTenantDTOVO dto) {
checkName(dto);
......@@ -281,7 +281,7 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
}
@Transactional
@Transactional(rollbackFor = Exception.class)
@Override
@TenantIdIgnore
public void edit(PlatTenantDTOVO dto) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment