yujian
2020-05-06 eb1adc13eda955e8ef0fc9fe41fb246fa89b722d
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserActiveLogMapper.java
@@ -1,22 +1,33 @@
package com.yeshi.fanli.dao.mybatis.user;
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
public interface UserActiveLogMapper {
   int deleteByPrimaryKey(Long id);
   int insert(UserActiveLog record);
   int insertSelective(UserActiveLog record);
   UserActiveLog selectByPrimaryKey(Long id);
   UserActiveLog selectLatestByUid(Long uid);
   UserActiveLog selectFirstActiveInfo(Long uid);
   int updateByPrimaryKeySelective(UserActiveLog record);
   int updateByPrimaryKey(UserActiveLog record);
package com.yeshi.fanli.dao.mybatis.user;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
public interface UserActiveLogMapper {
   int deleteByPrimaryKey(Long id);
   int insert(UserActiveLog record);
   int insertSelective(UserActiveLog record);
   UserActiveLog selectByPrimaryKey(Long id);
   UserActiveLog selectLatestByUid(Long uid);
   UserActiveLog selectFirstActiveInfo(Long uid);
   int updateByPrimaryKeySelective(UserActiveLog record);
   int updateByPrimaryKey(UserActiveLog record);
   /**
    * 统计当天活跃用户中有多少个用户是90天前才活跃过,期间从未活跃的用户数量。
    * @param date
    * @return
    */
   Long countActiveNumByDate(@Param("preDay") String preDay);
}