From 43f0578e80af82ecae6c61b51bd0539c6b960603 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期二, 16 八月 2022 19:08:32 +0800
Subject: [PATCH] 服务范围优化

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java
index 80e8486..d56ec5f 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ConvenientMerchantDAO.java
@@ -2,10 +2,14 @@
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.panzhihua.common.model.dtos.PageBaseDTO;
 import com.panzhihua.common.model.dtos.community.convenient.ExportMerchantDTO;
 import com.panzhihua.common.model.dtos.community.convenient.PageClassifyMerchantDTO;
 import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO;
+import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO;
 import com.panzhihua.common.model.dtos.community.convenient.PageSearchDTO;
+import com.panzhihua.common.model.vos.community.StatisticsCommVO;
+import com.panzhihua.common.model.vos.community.bigscreen.BigScreenMerchantStatisticsInfo;
 import com.panzhihua.common.model.vos.community.convenient.ConvenientConsultationStatisticsVO;
 import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO;
 import com.panzhihua.common.model.vos.community.convenient.ConvenientViewStatisticsVO;
@@ -36,7 +40,7 @@
     int deleteMerchantById(@Param("merchantId") Long merchantId, @Param("operator") Long operator);
 
     /**
-     * 分页查询便民服务商家
+     * 分页查询便民服务商家 运营后台
      * @param page 分页参数
      * @param pageConvenientMerchantDTO
      * @return
@@ -51,6 +55,8 @@
      */
     ConvenientMerchantVO selectMerchantById(@Param("merchantId") Long merchantId);
 
+    List<ConvenientMerchantVO> selectMerchantByName(@Param("communityId") Long communityId, @Param("currentMon") String currentMon);
+
     /**
      * 获取社区下热门商家
      *
@@ -59,7 +65,7 @@
      * @param currentMon
      * @return
      */
-    IPage<ConvenientMerchantVO> getPopularMerchants(@Param("page") Page page, @Param("communityId") Long communityId, @Param("currentMon") String currentMon);
+    IPage<ConvenientMerchantVO> getPopularMerchants(@Param("page") Page page, @Param("communityId") Long communityId, @Param("currentMon") String currentMon,@Param("areaCode")String areaCode);
 
     /**
      * 获取指定类型的商家
@@ -88,11 +94,11 @@
     IPage<ConvenientMerchantVO> pageSearchMerchant(@Param("page") Page page, @Param("pageSearchDTO") PageSearchDTO pageSearchDTO, @Param("currentMon") String currentMon);
 
     /**
-     * 获取商家导出数据
+     * 根据查询条件获取商家导出数据
      * @param exportMerchantDTO
      * @return
      */
-    List<ExportMerchantVO> exportMerchant(@Param("exportMerchantDTO") ExportMerchantDTO exportMerchantDTO);
+    List<ExportMerchantVO> exportMerchantBySearch(@Param("exportMerchantDTO") ExportMerchantDTO exportMerchantDTO);
 
     /**
      * 批量更新商家咨询量
@@ -107,4 +113,44 @@
      * @return
      */
     int batchUpdateMerchantViewNum(@Param("viewVOList") List<ConvenientViewStatisticsVO> viewVOList);
+
+    /**
+     * 根据指定id获取商家导出数据
+     * @param needExportIds
+     * @return
+     */
+    List<ExportMerchantVO> exportMerchantByIds(@Param("needExportIds") List<Long> needExportIds);
+
+    /**
+     * 批量更新商家营业状态
+     * @param convenientMerchantDOList
+     * @param status
+     * @return
+     */
+    int batchUpdateBusinessStatus(@Param("convenientMerchantDOList") List<ConvenientMerchantDO> convenientMerchantDOList, @Param("status") int status);
+
+    /**
+     * 社区商家
+     * @param communityId
+     * @return
+     */
+    List<ConvenientMerchantVO> selectMerchantListByCommunity(@Param("communityId") Long communityId);
+
+    /**
+     * 大屏分页获取热度排行商家
+     * @param page
+     * @param pagePopularMerchantDTO
+     * @return
+     */
+    List<ConvenientMerchantVO> getScreenPopularMerchants(@Param("page") Page page, @Param("pagePopularMerchantDTO") PagePopularMerchantDTO pagePopularMerchantDTO);
+
+    BigScreenMerchantStatisticsInfo getIndexMerchantBaseData(@Param("communityId") Long communityId);
+
+    List<StatisticsCommVO> selectServiceTypeCircleData(@Param("communityId") Long communityId);
+
+    List<StatisticsCommVO> getServiceTimesAddPolylineData(@Param("communityId") Long communityId);
+
+    StatisticsCommVO getServiceTimesTotalPolylineDate(@Param("communityId") Long communityId, @Param("date") String date);
+
+    IPage<ConvenientMerchantVO> indexMerchantList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO);
 }

--
Gitblit v1.7.1