| | |
| | | import com.panzhihua.service_community.model.dos.ConvenientServiceCategoryDO; |
| | | import com.panzhihua.service_community.service.ConvenientServiceCategoryService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @title: ConvenientServiceCategoryServiceImpl |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | |
| | | } |
| | | int count = this.baseMapper.checkCategoryIsUsing(categoryId); |
| | | if (count > 0) { |
| | | return R.fail("分类已被引用,无法删除"); |
| | | return R.fail("该分类名称已被引用,无法删除!"); |
| | | } |
| | | convenientServiceCategoryDO.setIsDel(true); |
| | | convenientServiceCategoryDO.setUpdatedBy(operator); |
| | |
| | | } |
| | | return R.ok(categoryVOList); |
| | | } |
| | | |
| | | @Override |
| | | public R getSuitableServiceCategories(Long communityId) { |
| | | return R.ok(this.baseMapper.selectSuitableServiceCategories(communityId)); |
| | | } |
| | | } |