yangys
2024-05-09 60e317f7782c718d28920060fd686d2092c99c1e
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);