|
@@ -77,16 +77,8 @@ public class GoodsServiceImpl extends IBaseServiceImpl<GoodsEntity, Long> implem
|
|
return Result.failure("对象不存在: " + id);
|
|
return Result.failure("对象不存在: " + id);
|
|
}
|
|
}
|
|
|
|
|
|
- // 物理删除旧图片
|
|
|
|
- String thumb = entity.getThumb();
|
|
|
|
- if (!StringUtils.equals(thumb, param.getThumb())){
|
|
|
|
- fileUtils.del(thumb);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
BeanUtils.copyProperties(param, entity);
|
|
BeanUtils.copyProperties(param, entity);
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
entity.setUpdateTime(LocalDateTime.now());
|
|
entity.setUpdateTime(LocalDateTime.now());
|
|
this.update(entity);
|
|
this.update(entity);
|
|
}
|
|
}
|