zxl
2025-12-22 cc4a3ff932b1e768914a4aff0eeaa866d08f9b91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.ycl.mapper;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ycl.domain.entity.Report;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycl.domain.query.ReportQuery;
import com.ycl.domain.query.WorkStationScheduleQuery;
import com.ycl.domain.vo.ReportVO;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 *  Mapper 接口
 *
 * @author zxl
 * @since 2025-12-18
 */
@Mapper
public interface ReportMapper extends BaseMapper<Report> {
 
    /**
     * id查找
     * @param id
     * @return
     */
    ReportVO getById(Integer id);
 
    /**
     *  分页
     */
    IPage getPage(IPage page, @Param("query") ReportQuery query);
 
    /**
     * 按月查询每日上报列表
     */
    List<ReportVO> groupByProjectAndDate(
            @Param("userId") Long userId,
            @Param("projectId") Integer projectId,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime);
}