商品重量
This commit is contained in:
@@ -540,9 +540,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|||||||
}
|
}
|
||||||
Product old = super.getById(dto.getId());
|
Product old = super.getById(dto.getId());
|
||||||
Product entity = BeanUtil.copyProperties(dto, Product.class);
|
Product entity = BeanUtil.copyProperties(dto, Product.class);
|
||||||
if ("weight".equals(entity.getType()) && (entity.getWeight() == null || entity.getWeight().compareTo(BigDecimal.ZERO) <= 0)) {
|
|
||||||
throw new CzgException("称重商品重量必须大于0");
|
|
||||||
}
|
|
||||||
entity.setImages(JSON.toJSONString(dto.getImages(), JSONWriter.Feature.WriteMapNullValue));
|
entity.setImages(JSON.toJSONString(dto.getImages(), JSONWriter.Feature.WriteMapNullValue));
|
||||||
entity.setGroupSnap("[]");
|
entity.setGroupSnap("[]");
|
||||||
//套餐
|
//套餐
|
||||||
|
|||||||
Reference in New Issue
Block a user