This commit is contained in:
wangliwen 2022-06-28 09:33:10 +08:00
parent 73f0607099
commit 4058089bcd
1 changed files with 4 additions and 4 deletions

View File

@ -259,8 +259,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
.skip((pageNum - 1) * pageSize).limit(pageSize) .skip((pageNum - 1) * pageSize).limit(pageSize)
.map(dto_ -> { .map(dto_ -> {
ResourceDTO temp = dto_; ResourceDTO temp = dto_;
this.get(dto_.getId()); ResourceDTO get = this.get(dto_.getId());
BeanUtils.copyProperties(temp, dto_); BeanUtils.copyProperties(get, dto_);
dto_.setInfoList(temp.getInfoList()); dto_.setInfoList(temp.getInfoList());
return dto_; return dto_;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
@ -330,8 +330,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
.skip((pageNum - 1) * pageSize).limit(pageSize) .skip((pageNum - 1) * pageSize).limit(pageSize)
.map(dto_ -> { .map(dto_ -> {
ResourceDTO temp = dto_; ResourceDTO temp = dto_;
this.get(dto_.getId()); ResourceDTO get = this.get(dto_.getId());
BeanUtils.copyProperties(temp, dto_); BeanUtils.copyProperties(get, dto_);
dto_.setInfoList(temp.getInfoList()); dto_.setInfoList(temp.getInfoList());
return dto_; return dto_;
}).collect(Collectors.toList()); }).collect(Collectors.toList());