feat:[REQ-3282] 自测, 修复已知问题
This commit is contained in:
parent
fd93f73c58
commit
7a41b82e61
@ -82,18 +82,6 @@ public class ListOrgCooperateShipReq {
|
||||
*/
|
||||
private Integer filterPersonType;
|
||||
|
||||
/**
|
||||
* 是否过滤工人
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean isFilterWorker = false;
|
||||
|
||||
/**
|
||||
* 人员过滤是否包含已退场
|
||||
*/
|
||||
@Builder.Default
|
||||
private Boolean includeExitPerson = false;
|
||||
|
||||
/**
|
||||
* 是否包含祖先节点
|
||||
*/
|
||||
|
||||
@ -129,13 +129,6 @@ public interface CooperateShipQueryRepository {
|
||||
@Builder.Default
|
||||
private Collection<Long> parentIds = Collections.emptySet();
|
||||
|
||||
/**
|
||||
* 是否包含删除数据
|
||||
*/
|
||||
@CriteriaField(ignore = true)
|
||||
@Builder.Default
|
||||
private Boolean includeDelete = false;
|
||||
|
||||
/**
|
||||
* 项目单位关系聚合查询
|
||||
*/
|
||||
|
||||
@ -24,7 +24,6 @@ import java.util.stream.Collectors;
|
||||
public class CooperateShipQueryRepositoryImpl implements CooperateShipQueryRepository {
|
||||
|
||||
private final SaasCooperateShipDao cooperateShipDao;
|
||||
private final NodeUserQueryRepository nodeUserQueryRepository;
|
||||
|
||||
@Override
|
||||
public List<SaasCooperateShip> list(CooperateShipQueryRepository.ListReq req) {
|
||||
@ -56,7 +55,7 @@ public class CooperateShipQueryRepositoryImpl implements CooperateShipQueryRepos
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
wrapper.eq(!req.getIncludeDelete(), "is_delete", 0);
|
||||
wrapper.eq("is_delete", 0);
|
||||
return cooperateShipDao.list(wrapper)
|
||||
.stream().map(e -> BeanUtil.toBean(e, SaasCooperateShip.class)).collect(Collectors.toList());
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class CooperateShipFoundationServiceImpl implements CooperateShipFoundationService {
|
||||
|
||||
private NodeUserQueryRepository nodeUserQueryRepository;
|
||||
private final NodeUserQueryRepository nodeUserQueryRepository;
|
||||
|
||||
@Override
|
||||
public void filterByPerson(Long filterPersonId, List<SaasCooperateShip> list) {
|
||||
|
||||
@ -127,7 +127,6 @@ public class NodeServiceImpl implements NodeService {
|
||||
List<Long> topNodeIds = CollUtil.map(cooperateShipQueryRepository.list(CooperateShipQueryRepository.ListReq.builder()
|
||||
.workspaceIds(req.getWorkspaceIds())
|
||||
.workspaceOuPairs(req.getWorkspaceOuPairs())
|
||||
.includeDelete(false)
|
||||
.build()), SaasCooperateShip::getOrganizationalNodeId, true);
|
||||
if (CollUtil.isEmpty(topNodeIds)) {
|
||||
return emptyPageResp;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user