|
@@ -69,7 +69,7 @@ public class DirServiceImpl extends ServiceImpl<DirMapper, DirEntity> implements
|
|
|
}
|
|
|
this.save(entity);
|
|
|
} else {
|
|
|
- entity = getById(entity);
|
|
|
+ entity = getById(id);
|
|
|
BaseRuntimeException.isNull(entity, ErrorEnum.FAILURE_SYS_3001.code(), ErrorEnum.FAILURE_SYS_3001.message());
|
|
|
BeanUtils.copyProperties(param, entity,"parentId");
|
|
|
List<DirEntity> dirEntities = findByIdAndNameAndUserId(entity.getParentId(), entity.getName(), entity.getType(),entity.getUserId());
|