This commit is contained in:
wangliwen 2022-07-13 16:29:33 +08:00
parent c81eb20845
commit 91355094ee
1 changed files with 1 additions and 0 deletions

View File

@ -338,6 +338,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
public void updateWithAttrs(ResourceDTO dto) { public void updateWithAttrs(ResourceDTO dto) {
ResourceEntity resourceEntity = new ResourceEntity(); ResourceEntity resourceEntity = new ResourceEntity();
BeanUtils.copyProperties(dto, resourceEntity); BeanUtils.copyProperties(dto, resourceEntity);
resourceEntity.setUpdateDate(new Date());
resourceDao.updateById(resourceEntity); resourceDao.updateById(resourceEntity);
ArrayList<Long> list = new ArrayList<>(); ArrayList<Long> list = new ArrayList<>();
list.add(resourceEntity.getId()); list.add(resourceEntity.getId());