Browse Source

Merge branch 'master' of http://git.ds-bay.com/project/kmall-pt-general

lsp 4 years ago
parent
commit
c49af4b5b9

+ 9 - 9
kmall-admin/src/main/java/com/kmall/admin/service/impl/ProductStoreRelaServiceImpl.java

@@ -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){

+ 4 - 4
kmall-admin/src/main/webapp/js/shop/storeProductStock.js

@@ -475,10 +475,10 @@ var vm = new Vue({
                 alert("底线价不能为空!");
                 return;
             }
-            if(psr.retailPrice<psr.bottomLinePrice){
-                alert("零售价不能低于底线价,请修改价格!");
-                return;
-            }
+            // if(psr.retailPrice<psr.bottomLinePrice){
+            //     alert("零售价不能低于底线价,请修改价格!");
+            //     return;
+            // }
             var url = vm.productStoreRela.id == null ? "../productstorerela/save" : "../productstorerela/update";
             vm.productStoreRela.attributeEntityList = vm.attributeEntityList;
             $.ajax({