Commit 00ea90b8 authored by 廖旭伟's avatar 廖旭伟

bug修改

parent 68b5bca0
......@@ -13,5 +13,5 @@ import java.util.List;
*/
@Data
public class CertificateIndustryVo extends BaseEntityLong {
List<CertificateIndustryEntity> childIndustry;
List<CertificateIndustryEntity> children;
}
\ No newline at end of file
......@@ -66,7 +66,7 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
if(CollectionUtils.isNotEmpty(result)){
List<CertificateIndustryEntity> collect = result.stream().filter(t -> t.getParentId() == -1).map(
m -> {
m.setChildIndustry(getChildren(m, result));
m.setChildren(getChildren(m, result));
return m;
}
).collect(Collectors.toList());
......@@ -95,7 +95,7 @@ public class CertificateIndustryController extends BaseCRUDJsonBodyMappingContro
return Objects.equals(t.getParentId(), root.getId());
}).map(
m -> {
m.setChildIndustry(getChildren(m, all));
m.setChildren(getChildren(m, all));
return m;
}
).collect(Collectors.toList());
......
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 to comment