liujie
2025-06-09 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb
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;
@@ -29,6 +33,7 @@
public interface ConvenientMerchantDAO extends BaseMapper<ConvenientMerchantDO> {
    /**
     * 删除便民服务商家
     *
     * @param merchantId
     * @param operator
     * @return
@@ -37,7 +42,8 @@
    /**
     * 分页查询便民服务商家 运营后台
     * @param page 分页参数
     *
     * @param page                      分页参数
     * @param pageConvenientMerchantDTO
     * @return
     */
@@ -46,10 +52,19 @@
    /**
     * 查询商家信息
     *
     * @param merchantId
     * @return
     */
    ConvenientMerchantVO selectMerchantById(@Param("merchantId") Long merchantId);
    /**
     * 根据后台用户id查询
     *
     * @param userId
     * @return
     */
    ConvenientMerchantVO selectMerchantByUserId(@Param("userId") Long userId);
    List<ConvenientMerchantVO> selectMerchantByName(@Param("communityId") Long communityId, @Param("currentMon") String currentMon);
@@ -61,10 +76,11 @@
     * @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);
    /**
     * 获取指定类型的商家
     *
     * @param page
     * @param pageClassifyMerchantDTO
     * @param currentMon
@@ -74,6 +90,7 @@
    /**
     * 获取商家详情
     *
     * @param merchantId
     * @param currentMon
     * @return
@@ -82,6 +99,7 @@
    /**
     * 分页搜索商家信息
     *
     * @param page
     * @param pageSearchDTO
     * @param currentMon
@@ -91,6 +109,7 @@
    /**
     * 根据查询条件获取商家导出数据
     *
     * @param exportMerchantDTO
     * @return
     */
@@ -98,6 +117,7 @@
    /**
     * 批量更新商家咨询量
     *
     * @param consultationVOList
     * @return
     */
@@ -105,6 +125,7 @@
    /**
     * 批量更新商家浏览量
     *
     * @param viewVOList
     * @return
     */
@@ -112,6 +133,7 @@
    /**
     * 根据指定id获取商家导出数据
     *
     * @param needExportIds
     * @return
     */
@@ -119,9 +141,39 @@
    /**
     * 批量更新商家营业状态
     *
     * @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);
    List<ConvenientMerchantVO> getMerchantDetailByAccount(@Param("account") String account);
}