ShareLogMapper.java 762 Bytes
package com.example.mapper;

import org.apache.ibatis.annotations.Param;

import com.example.models.ShareLog;

/**
 * Created by JA on 17/7/17.
 */
public interface ShareLogMapper {

	boolean create(ShareLog shareLog);

	int findPVByDay(@Param("startDate") String startDate,@Param("endDate") String endDate);
	int findUVByDay(@Param("startDate") String startDate,@Param("endDate") String endDate);
	int findShareByDay(@Param("startDate") String startDate,@Param("endDate") String endDate);
	int findImgByDay(@Param("startDate") String startDate,@Param("endDate") String endDate);


	long countByDay(@Param("openid") String openid, @Param("startDate") String startDate,
			@Param("endDate") String endDate);

	boolean saveStat(@Param("openid") String openid);

}