RuoYi/ruoyi-system/src/main/java/com/ruoyi/system/mapper/MaterialStatsDailyMapper.java

41 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.MaterialStatsDaily;
import org.apache.ibatis.annotations.Param;
public interface MaterialStatsDailyMapper
{
/**
* 插入或更新日统计数据MySQL 唯一键冲突时更新)
*/
int insertOrUpdate(MaterialStatsDaily record);
/**
* 按条件查询统计列表
*/
List<MaterialStatsDaily> selectList(@Param("appName") String appName,
@Param("appSource") String appSource,
@Param("startDate") String startDate,
@Param("endDate") String endDate);
/**
* 点击数+1存在即更新不存在则插入 0,1,0
*/
int incrClick(@Param("materialId") Long materialId,
@Param("appName") String appName,
@Param("appSource") String appSource,
@Param("statDate") String statDate,
@Param("title") String title,
@Param("labels") String labels);
/**
* 提交数+1存在即更新不存在则插入 1,0,0
*/
int incrSubmit(@Param("materialId") Long materialId,
@Param("appName") String appName,
@Param("appSource") String appSource,
@Param("statDate") String statDate,
@Param("title") String title,
@Param("labels") String labels);
}