From 86df207c37502cce1b2043e1c7c0486459eef1d6 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期四, 13 三月 2025 19:58:45 +0800
Subject: [PATCH] 党员、诉求评论基础代码

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java
index 709d88a..339cd5f 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java
@@ -26,7 +26,8 @@
      * @param pageConvenientServiceCategoryDTO
      * @return 服务分类详情
      */
-    IPage<ConvenientServiceCategoryVO> pageServiceCategory(@Param("page") Page page, @Param("pageConvenientServiceCategoryDTO")
+    IPage<ConvenientServiceCategoryVO> pageServiceCategory(@Param("page") Page page,
+                                                           @Param("pageConvenientServiceCategoryDTO")
                                                            PageConvenientServiceCategoryDTO pageConvenientServiceCategoryDTO);
 
     /**
@@ -37,7 +38,7 @@
      * @param createdBy
      * @return
      */
-    int createMerchantServiceRelation(@Param("merchantId") Long merchantId, @Param("serviceId") Long serviceId,
+    int createMerchantServiceRelation(@Param("id")Long id,@Param("merchantId") Long merchantId, @Param("serviceId") Long serviceId,
                                       @Param("name") String name, @Param("createdBy") Long createdBy);
 
     /**
@@ -59,5 +60,19 @@
      * @param merchantId
      * @return serviceIds
      */
-    List<Long> selectServiceIdsForMerchant(@Param("merchantId") Long merchantId);
+    List<String> selectServiceIdsForMerchant(@Param("merchantId") Long merchantId);
+
+    /**
+     * 查看服务分类是否被引用
+     * @param categoryId
+     * @return
+     */
+    int checkCategoryIsUsing(@Param("categoryId") Long categoryId);
+
+    /**
+     * 获取该社区商家数量大于0的分类
+     * @param communityId
+     * @return
+     */
+    List<ConvenientServiceCategoryVO> selectSuitableServiceCategories(@Param("communityId") Long communityId,@Param("areaCode")String areaCode);
 }

--
Gitblit v1.7.1