yangys
2024-05-18 040976de6f9934b99f30268a28e2ecf42260e217
smart-man-boot/src/main/java/com/qianwen/smartman/modules/cps/service/impl/ProductTypeServiceImpl.java
@@ -18,7 +18,6 @@
@Transactional(rollbackFor = {Exception.class})
@Service
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/impl/ProductTypeServiceImpl.class */
public class ProductTypeServiceImpl extends BaseServiceImpl<ProductTypeMapper, ProductType> implements IProductTypeService {
    private final ProductMapper productMapper;
@@ -27,7 +26,7 @@
        this.productMapper = productMapper;
    }
    @Override // org.springblade.modules.cps.service.IProductTypeService
    public Boolean removeIds(List<Long> ids) {
        ids.forEach(id -> {
           Long count = this.productMapper.selectCount(Wrappers.<Product>lambdaQuery().eq(Product::getTypeId, id));
@@ -42,7 +41,7 @@
        return Boolean.valueOf(removeByIds(ids));
    }
    @Override // org.springblade.modules.cps.service.IProductTypeService
    public void insertOrUpdate(ProductType productType) {
        checkProductTypeName(productType);
        saveOrUpdate(productType);