|
|
|
@ -206,14 +206,15 @@ public class ClassifyServiceImpl extends BaseServiceImpl<ClassifyMapper, Classif
|
|
|
|
|
); |
|
|
|
|
for (ClassifyEntity entity : entityList) { |
|
|
|
|
ClassifyVO classifyVO = ClassifyWrapper.build().entityVO(entity); |
|
|
|
|
ClassifyApiVO classifyApiVO = Func.copy(classifyVO, ClassifyApiVO.class); |
|
|
|
|
|
|
|
|
|
List<PointsEntity> list = pointsService.list(Wrappers.<PointsEntity>query().lambda() |
|
|
|
|
.eq(PointsEntity::getClassifyId, classifyEntity.getId()) |
|
|
|
|
); |
|
|
|
|
if(Func.isNotEmpty(list)){ |
|
|
|
|
classifyVO.setPointsVOS(PointsWrapper.build().listVO(list)); |
|
|
|
|
classifyApiVO.setPointsVOS(PointsWrapper.build().listVO(list)); |
|
|
|
|
} |
|
|
|
|
ClassifyApiVO copy = Func.copy(classifyVO, ClassifyApiVO.class); |
|
|
|
|
classifyList.add(copy); |
|
|
|
|
classifyList.add(classifyApiVO); |
|
|
|
|
} |
|
|
|
|
if (!Objects.isNull(classifyList)){ |
|
|
|
|
classifyEntity.setChildren(classifyList); |
|
|
|
|