| | |
| | | |
| | | @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; |
| | | |
| | |
| | | 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)); |
| | |
| | | return Boolean.valueOf(removeByIds(ids)); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductTypeService |
| | | |
| | | public void insertOrUpdate(ProductType productType) { |
| | | checkProductTypeName(productType); |
| | | saveOrUpdate(productType); |