|
@@ -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("组合码错误");
|
|
|
}
|