From c1e48a47b39dbd6919bfd9cf2e7023e9f3d6fee8 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期五, 05 十一月 2021 10:24:21 +0800
Subject: [PATCH] 1105测试代码修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java
index c3a7544..d6adbf8 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ConvenientServiceCategoryServiceImpl.java
@@ -22,8 +22,6 @@
 import com.panzhihua.service_community.model.dos.ConvenientServiceCategoryDO;
 import com.panzhihua.service_community.service.ConvenientServiceCategoryService;
 
-import javax.annotation.Resource;
-
 /**
  * @title: ConvenientServiceCategoryServiceImpl
  * @projectName: 成都呐喊信息技术有限公司-智慧社区项目
@@ -72,7 +70,7 @@
         }
         int count = this.baseMapper.checkCategoryIsUsing(categoryId);
         if (count > 0) {
-            return R.fail("分类已被引用,无法删除");
+            return R.fail("该分类名称已被引用,无法删除!");
         }
         convenientServiceCategoryDO.setIsDel(true);
         convenientServiceCategoryDO.setUpdatedBy(operator);
@@ -120,4 +118,9 @@
         }
         return R.ok(categoryVOList);
     }
+
+    @Override
+    public R getSuitableServiceCategories(Long communityId) {
+        return R.ok(this.baseMapper.selectSuitableServiceCategories(communityId));
+    }
 }

--
Gitblit v1.7.1