Quellcode durchsuchen

feat: 限购取消

xdd vor 3 Wochen
Ursprung
Commit
9628bf3ac1

+ 2 - 6
fs-service-system/src/main/java/com/fs/store/service/impl/FsStoreCartServiceImpl.java

@@ -139,9 +139,7 @@ public class FsStoreCartServiceImpl implements IFsStoreCartService
             FsStoreProductAttrValue productAttrValue = valueMapper.selectFsStoreProductAttrValueById(storeCart.getProductAttrValueId());
 
                 if (StringUtils.isEmpty(productAttrValue.getGroupBarCode())) {
-                    if (cartParam.getCartNum() > 10) {
-                        return R.error("限购10个");
-                    }
+
                 } else {
                     FsStoreProductGroup group=productGroupMapper.selectFsStoreProductGroupByBarCode(productAttrValue.getGroupBarCode());
                     if(group!=null){
@@ -151,9 +149,7 @@ public class FsStoreCartServiceImpl implements IFsStoreCartService
                         for (StoreProductGroupDTO productGroupDTO : productGroupDTOS) {
                             num += productGroupDTO.getCount() * cartParam.getCartNum();
                         }
-                        if (num > 10) {
-                            return R.error("限购10个");
-                        }
+
                     } else {
                         return R.error("组合码错误");
                     }

+ 1 - 6
fs-service-system/src/main/java/com/fs/store/service/impl/FsStoreOrderServiceImpl.java

@@ -784,9 +784,7 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
 
                 if(param.getCompanyId()==null){
                     if(StringUtils.isEmpty(cart.getGroupBarCode())){
-                        if (cart.getCartNum()>10){
-                            return R.error("限购10个");
-                        }
+
                     }else {
                         FsStoreProductGroup group=storeProductGroupService.selectFsStoreProductGroupByBarCode(cart.getGroupBarCode());
                         if(group!=null) {
@@ -796,9 +794,6 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
                             for (StoreProductGroupDTO productGroupDTO : productGroupDTOS) {
                                num+= productGroupDTO.getCount()*cart.getCartNum();
                             }
-                            if (num>10){
-                                return R.error("限购10个");
-                            }
                         }else {
                             return R.error("组合码错误");
                         }