Commit 17fdf7b0 authored by shiyu's avatar shiyu

用户更新藏品,预估价设置null3

parent 34e731e5
......@@ -62,6 +62,7 @@ public interface SupplierItemDao {
*/
int delete(long itemId);
/**
* 首页查询商品列表
* @param supplierItemRequestDto
......
......@@ -810,15 +810,16 @@ public class SupplierItemServiceImpl implements SupplierItemService {
try {
SupplierItem oldItem = supplierItemDao.findById(dto.getId());
SupplierItem supplierItem = new SupplierItem();
BeanUtil.copyProperties(oldItem, supplierItem);
BeanUtil.copyProperties(dto, supplierItem);
EntityMapper.copyAttribute(oldItem, supplierItem);
EntityMapper.copyAttribute(dto, supplierItem);
supplierItem.setDistributionPrice(PriceUtil.convertPriceFromStr(StringUtils.isEmpty(dto.getDistributionPrice())?"0":dto.getDistributionPrice()));
supplierItem.setImages(dto.getImages());
supplierItem.setOfficialEstimatedPrice(null);
/* supplierItem.setType(oldItem.getType());
supplierItem.setType(oldItem.getType());
supplierItem.setCreatorId(oldItem.getCreatorId());
supplierItem.setRebate(oldItem.getRebate());
supplierItem.setSupplierId(oldItem.getSupplierId());*/
supplierItem.setSupplierId(oldItem.getSupplierId());
supplierItem.setIsDeleted(oldItem.getIsDeleted());
if (StringUtils.hasLength(dto.getVideos())) {
supplierItem.setVideos(getVideosImage(dto.getVideos()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment