添加公共统计接口
This commit is contained in:
@@ -1,13 +1,32 @@
|
||||
package org.jiayunet.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jiayunet.pojo.po.RecruitAnnouncement;
|
||||
import org.jiayunet.pojo.vo.RecruitAnnouncementStatisticsVo;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* 招聘公告Mapper
|
||||
* 招聘公告主表Mapper
|
||||
*
|
||||
* @author zk
|
||||
*/
|
||||
@Mapper
|
||||
public interface RecruitAnnouncementMapper extends CommonMapper<RecruitAnnouncement> {
|
||||
|
||||
/**
|
||||
* 查询最后更新时间
|
||||
* <p>按id倒序取第一条的创建时间</p>
|
||||
*/
|
||||
Instant selectLastCreateTime();
|
||||
|
||||
/**
|
||||
* 统计公告数量(日/月/累计)
|
||||
* <p>一次扫描算三个计数,保证三个数字来自同一快照;无数据时计数为0</p>
|
||||
*
|
||||
* @param dayStart 今日开始时间
|
||||
* @param monthStart 本月开始时间
|
||||
*/
|
||||
RecruitAnnouncementStatisticsVo selectStatistics(@Param("dayStart") Instant dayStart, @Param("monthStart") Instant monthStart);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user