|
|
@@ -25,7 +25,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
|
|
|
@Override
|
|
|
public Boolean create(ProductVO productVO) {
|
|
|
- if (productRepository.findByStoreIdAndName(productVO.getStoreId(),productVO.getName())==null){
|
|
|
+ if (productRepository.findByStoreIdAndName(productVO.getStoreId(),productVO.getName())!=null){
|
|
|
throw BlueWhaleException.nameAlreadyExists();
|
|
|
}
|
|
|
Product product=productVO.toPO();
|