feat:[REQ-3282] 暂时提交
This commit is contained in:
parent
e816cc703f
commit
ea27e70c08
@ -34,7 +34,7 @@ public class ListOrgCooperateShipReq {
|
||||
*/
|
||||
@CriteriaField(field = "workspaceType", operator = Operator.IN)
|
||||
@Builder.Default
|
||||
private Set<Integer> workspaceType = Collections.emptySet();
|
||||
private Set<Integer> workspaceTypes = Collections.emptySet();
|
||||
|
||||
/**
|
||||
* 单位id集合(如果是班组则插入队伍id)
|
||||
@ -78,6 +78,10 @@ public class ListOrgCooperateShipReq {
|
||||
@Builder.Default
|
||||
private Set<Integer> statuses = Collections.emptySet();
|
||||
|
||||
@CriteriaField(field = "path", operator = Operator.SW)
|
||||
@Builder.Default
|
||||
private Set<String> pathRight = Collections.emptySet();
|
||||
|
||||
/**
|
||||
* 需要过滤的personId
|
||||
* personId
|
||||
@ -119,7 +123,7 @@ public class ListOrgCooperateShipReq {
|
||||
*/
|
||||
@CriteriaField(ignore = true)
|
||||
@Builder.Default
|
||||
private Boolean isSelectDescendant = false;
|
||||
private Boolean isSelectDescendants = false;
|
||||
|
||||
/**
|
||||
* 条件:当需要查询上下级数据时启用
|
||||
|
||||
@ -149,6 +149,15 @@ public class CooperateShipServiceImpl implements CooperateShipService {
|
||||
list.addAll(ancestorShipNodes);
|
||||
}
|
||||
|
||||
// 是否查询子孙
|
||||
if (BooleanUtil.isTrue(req.getIsSelectDescendants())) {
|
||||
List<SaasCooperateShip> descendantShipNodes = cooperateShipQueryRepository.list(ListOrgCooperateShipReq.builder().build());
|
||||
// list.addAll(descendantShipNodes);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 根据person过滤当前节点及以下节点
|
||||
if (isFilterCurrentAndBelowByPerson) {
|
||||
cooperateShipFoundationService.filterByPerson(req.getFilterPersonId(), list);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user