IUnionClickLogsDAO.java 1.71 KB
package com.yoho.unions.dal;


import com.yoho.service.model.union.request.ActivateDeviceIdReqBO;
import com.yoho.service.model.union.request.UnionLogsReqBO;
import com.yoho.service.model.union.response.ActivateDeviceIdRspBO;
import com.yoho.unions.dal.model.UnionClickCount;
import com.yoho.unions.dal.model.UnionClickLogs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUnionClickLogsDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteLimit(@Param("endTime") int endTime);

    int insert(UnionClickLogs record);

    int insertSelective(UnionClickLogs record);

    UnionClickLogs selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(UnionClickLogs record);

    UnionClickLogs selectByIdfa(@Param("idfa") String idfa,@Param("beginTime") int beginTime,@Param("endTime") int endTime);

    UnionClickLogs selectByImei(@Param("imei") String imei,@Param("beginTime") int beginTime,@Param("endTime") int endTime);

    UnionClickLogs selectByTDandIP(@Param("td") String td,@Param("clientIp")String clientIp,@Param("beginTime") int beginTime,@Param("endTime") int endTime);

    List<ActivateDeviceIdRspBO> selectListByParam(@Param("list") List<ActivateDeviceIdRspBO> activateDeviceIdRspList,@Param("bo") ActivateDeviceIdReqBO activateDeviceIdReqBO);

    Integer queryActivateIdfaCount(ActivateDeviceIdReqBO activateDeviceIdReqBO);

    Integer queryActivateImeiCount(ActivateDeviceIdReqBO activateDeviceIdReqBO);

    int queryUnionClickLogsCountByParam(UnionLogsReqBO unionLogsReqBO);

    List<UnionClickLogs> queryUnionClickLogsByParam(UnionLogsReqBO unionLogsReqBO);
    
    List<UnionClickCount> queryCountInfoByTime(@Param("beginTime") int beginTime,@Param("endTime") int endTime);
}