|
@@ -141,7 +141,15 @@ public class DistributionActivityTemplateServiceImpl extends ServiceImpl<Distrib
|
|
|
lqw.eq(bo.getPosterTempId() != null, DistributionActivityTemplate::getPosterTempId, bo.getPosterTempId());
|
|
|
lqw.eq(bo.getStartTime() != null, DistributionActivityTemplate::getStartTime, bo.getStartTime());
|
|
|
lqw.eq(bo.getEndTime() != null, DistributionActivityTemplate::getEndTime, bo.getEndTime());
|
|
|
- return entity2Vo(this.list(lqw));
|
|
|
+ List<DistributionActivityTemplateVo> voList = entity2Vo(this.list(lqw));
|
|
|
+ if (CollectionUtils.isEmpty(voList)){
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ voList.forEach(item -> {
|
|
|
+ DistributionActivityTemplatePoster templatePoster = iDistributionActivityTemplatePosterService.getById(item.getPosterTempId());
|
|
|
+ item.setPosterTempName(templatePoster.getName());
|
|
|
+ });
|
|
|
+ return voList;
|
|
|
}
|
|
|
|
|
|
/**
|