| | |
| | | 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); |