| package com.panzhihua.service_community.dao; | 
|   | 
| import com.panzhihua.common.model.vos.community.convenient.ConvenientConsultationStatisticsVO; | 
| import org.apache.ibatis.annotations.Mapper; | 
|   | 
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
| import com.panzhihua.service_community.model.dos.ConvenientConsultationStatisticsDO; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * @title: ConvenientConsultationStatisticsDAO | 
|  * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 | 
|  * @description: 便民服务商家咨询量统计DAO | 
|  * @author: hans | 
|  * @date: 2021/09/23 13:55 | 
|  */ | 
| @Mapper | 
| public interface ConvenientConsultationStatisticsDAO extends BaseMapper<ConvenientConsultationStatisticsDO> { | 
|   | 
|     /** | 
|      * 创建当天统计数据 | 
|      * @param merchantId | 
|      * @return | 
|      */ | 
|     int createTodayStatistic(@Param("merchantId") Long merchantId); | 
|   | 
|     /** | 
|      * 增加当天浏览量 | 
|      * @param merchantId | 
|      * @param nowDate | 
|      * @return | 
|      */ | 
|     int incrConsultationNum(@Param("merchantId") Long merchantId, @Param("nowDate") String nowDate); | 
|   | 
|     /** | 
|      * 获取月咨询量 | 
|      * @param merchantId | 
|      * @param moth | 
|      * @return | 
|      */ | 
|     int selectMonthConsultationVolume(@Param("merchantId") Long merchantId, @Param("moth") String moth); | 
|   | 
|     /** | 
|      * 获取当天咨询量 | 
|      * @param merchantId | 
|      * @param day | 
|      * @return | 
|      */ | 
|     int selectDayConsultationVolume(@Param("merchantId") Long merchantId, @Param("day") String day); | 
|   | 
|     /** | 
|      * 获取商家总咨询量 | 
|      * @return | 
|      */ | 
|     List<ConvenientConsultationStatisticsVO> selectSumForConsultationNum(); | 
|   | 
|     /** | 
|      * 获取商家总咨询量 | 
|      * @param merchantId | 
|      * @return | 
|      */ | 
|     int selectTotalConsultationVolume(@Param("merchantId") Long merchantId); | 
| } |