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