|
@@ -149,12 +149,12 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
|
}
|
|
|
|
|
|
//商品配置校验
|
|
|
- if(!StringUtils.isNotEmpty(goodsEntity.getListPicUrl())){
|
|
|
- throw new RRException("该商品列表图不能为空!请先在商品管理》所有商品中维护商品编号为【"+goodsEntity.getGoodsSn()+"】的商品列表图信息,再来操作门店商品数据");
|
|
|
- }
|
|
|
- if(!StringUtils.isNotEmpty(goodsEntity.getPrimaryPicUrl())){
|
|
|
- throw new RRException("该商品主图不能为空!请先在商品管理》所有商品中维护商品编号为【"+goodsEntity.getGoodsSn()+"】的商品主图信息,再来操作门店商品数据");
|
|
|
- }
|
|
|
+// if(!StringUtils.isNotEmpty(goodsEntity.getListPicUrl())){
|
|
|
+// throw new RRException("该商品列表图不能为空!请先在商品管理》所有商品中维护商品编号为【"+goodsEntity.getGoodsSn()+"】的商品列表图信息,再来操作门店商品数据");
|
|
|
+// }
|
|
|
+// if(!StringUtils.isNotEmpty(goodsEntity.getPrimaryPicUrl())){
|
|
|
+// throw new RRException("该商品主图不能为空!请先在商品管理》所有商品中维护商品编号为【"+goodsEntity.getGoodsSn()+"】的商品主图信息,再来操作门店商品数据");
|
|
|
+// }
|
|
|
// List<GoodsGalleryEntity> galleryEntityList = goodsGalleryDao.queryObjectByGoodId(goodsEntity.getId());
|
|
|
// if (galleryEntityList == null || galleryEntityList.size() <= 0) {
|
|
|
// throw new RRException("该商品轮播图不能为空!请先在商品管理》所有商品中维护商品编号为【"+goodsEntity.getGoodsSn()+"】的商品详情轮播图信息,再来操作门店商品数据");
|
|
@@ -890,9 +890,9 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的运费模板输入有误");
|
|
|
}*/
|
|
|
// 如果底线价大于零售价
|
|
|
- if (new BigDecimal(storeGoodsDto.getBottomLinePrice()).compareTo(new BigDecimal(storeGoodsDto.getRetailPrice())) == 1) {
|
|
|
- throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的底线价不可以大于零售价");
|
|
|
- }
|
|
|
+// if (new BigDecimal(storeGoodsDto.getBottomLinePrice()).compareTo(new BigDecimal(storeGoodsDto.getRetailPrice())) == 1) {
|
|
|
+// throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的底线价不可以大于零售价");
|
|
|
+// }
|
|
|
// 查询批次号是否存在
|
|
|
// GoodsBatchEntity goodsBatchEntity = goodsBatchDao.queryByBatchSnAndSku(storeGoodsDto.getBatchSn(), goodsEntity.getSku());
|
|
|
// if (goodsBatchEntity!=null){
|