admin
2024-01-23 81da61b828e29b7745e1382dfbbaeb685dc083ef
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserActiveLogService.java
@@ -1,62 +1,42 @@
package com.yeshi.fanli.service.inter.user;
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
/**
 * 用户活跃日志服务
 *
 * @author Administrator
 *
 */
public interface UserActiveLogService {
   /**
    * 用户活跃日志
    *
    * @param userActiveLog
    */
   public void addUserActiveLog(UserActiveLog userActiveLog);
   /**
    * 获取某个用户的最近一次的活跃信息
    *
    * @param uid
    * @return
    */
   public UserActiveLog getUserLatestActiveInfo(Long uid);
   /**
    * 根据渠道   统计当日新增用户数量
    * @param channel
    * @return
    */
   public List<Map<String, Object>> countSameDayByChannel(String channel, Integer type, String years,
         String startTime, String endTime) throws Exception;
   /**
    * 根据渠道   统计当日新增用户有购买行为的数量
    * @param channel
    * @return
    */
   public List<Object> countSameDayAndBuyGoodsByChannel(String channel, Integer type, String years, String startTime,
         String endTime) throws Exception;
   /**
    * 当日产生订单的新增用户 与 当日总新增用户比例
    * @param channel
    * @param type
    * @param years
    * @param startTime
    * @param endTime
    * @return
    * @throws Exception
    */
   public List<Object> getBuyProportion(String channel, Integer type, String years, String startTime, String endTime,Integer orderNum)
         throws Exception;
   public List<Map<String, Object>> countOneWeekUserInfo(String channel, String startTime, String endTime, Integer orderNumber)
         throws Exception;
}
package com.yeshi.fanli.service.inter.user;
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
/**
 * 用户活跃日志服务
 *
 * @author Administrator
 *
 */
public interface UserActiveLogService {
   /**
    * 用户活跃日志
    *
    * @param userActiveLog
    */
   public void addUserActiveLog(UserActiveLog userActiveLog);
   /**
    * 获取某个用户的最近一次的活跃信息
    *
    * @param uid
    * @return
    */
   public UserActiveLog getUserLatestActiveInfo(Long uid);
   /**
    * 获取第一次活跃信息
    *
    * @param uid
    * @return
    */
   public UserActiveLog getFirstActiveInfo(Long uid);
   /**
    * 统计90后再次活跃用户
    * @param date
    * @return
    */
   public long count90DaysLaterActiveNum(String date);
}