| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserActiveLog; |
| | | |
| | | public interface UserActiveLogMapper { |
| | |
| | | int insertSelective(UserActiveLog record); |
| | | |
| | | UserActiveLog selectByPrimaryKey(Long id); |
| | | |
| | | |
| | | UserActiveLog selectLatestByUid(Long uid); |
| | | |
| | | UserActiveLog selectFirstActiveInfo(Long uid); |
| | | |
| | | int updateByPrimaryKeySelective(UserActiveLog record); |
| | | |
| | | int updateByPrimaryKey(UserActiveLog record); |
| | | |
| | | /** |
| | | * 根据渠道 统计当日新增用户数量 |
| | | * @param channel |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> countSameDayByChannel(@Param("channel")String channel, |
| | | @Param("type")Integer type, @Param("years") String years, |
| | | @Param("startTime")String startTime, @Param("endTime")String endTime); |
| | | |
| | | /** |
| | | * 根据渠道 统计当日新增用户有购买行为的数量 |
| | | * @param channel |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> countSameDayAndBuyGoodsByChannel(@Param("channel")String channel, |
| | | @Param("type")Integer type, @Param("years") String years, |
| | | @Param("startTime")String startTime, @Param("endTime")String endTime); |
| | | |
| | | /** |
| | | * 根据渠道 统计当日新增用户有购买行为的订单数量大于3 |
| | | * @param channel |
| | | * @return |
| | | */ |
| | | List<Map<String, Object>> countSameDayAndBuyGoodsByChannelAndBuyNum(@Param("channel")String channel, |
| | | @Param("type")Integer type, @Param("years") String years, |
| | | @Param("startTime")String startTime, @Param("endTime")String endTime, |
| | | @Param("orderNum")Integer orderNum); |
| | | } |