diff --git a/src/com/engine/organization/entity/comp/bo/CompBO.java b/src/com/engine/organization/entity/comp/bo/CompBO.java index 635c6892..23b8ceda 100644 --- a/src/com/engine/organization/entity/comp/bo/CompBO.java +++ b/src/com/engine/organization/entity/comp/bo/CompBO.java @@ -32,10 +32,10 @@ public class CompBO { .build() ).collect(Collectors.toList()); Map> collects = dtoList.stream().filter(item -> null != item.getParentCompany() && 0 != item.getParentCompany()).collect(Collectors.groupingBy(CompListDTO::getParentCompany)); - return dtoList.stream().filter(item -> null == item.getParentCompany() || 0 == item.getParentCompany()).map(e -> { + return dtoList.stream().map(e -> { e.setChildren(collects.get(e.getId())); return e; - }).collect(Collectors.toList()); + }).filter(item -> null == item.getParentCompany() || 0 == item.getParentCompany()).collect(Collectors.toList()); } public static CompPO convertParamToPO(CompSearchParam param, Long employeeId) { diff --git a/src/com/engine/organization/mapper/comp/CompMapper.xml b/src/com/engine/organization/mapper/comp/CompMapper.xml index e6556bab..f299610f 100644 --- a/src/com/engine/organization/mapper/comp/CompMapper.xml +++ b/src/com/engine/organization/mapper/comp/CompMapper.xml @@ -38,48 +38,6 @@ , t.update_time - - - and comp_no like CONCAT('%',#{compNo},'%') - - - and comp_name like CONCAT('%',#{compName},'%') - - - and comp_name_short like CONCAT('%',#{compNameShort},'%') - - - and org_code like CONCAT('%',#{orgCode},'%') - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -