From f3e7ecf643ec517ad93b80a50e63eaab90b6461b Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期二, 07 二月 2023 15:51:22 +0800 Subject: [PATCH] 三说会堂事件搜索修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientServiceCategoryDAO.java | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 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..732390e 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 @@ -37,7 +37,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 +59,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