package com.fizz.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fizz.business.domain.CrmPdoExcoil;
import com.fizz.business.vo.ReportDetailVO;
import com.fizz.business.vo.ReportSummaryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CrmPdoExcoilMapper extends BaseMapper<CrmPdoExcoil> {


    ReportSummaryVO getReportSummary(
            @Param("groupNo") String groupNo,
            @Param("shiftNo") String shiftNo,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime
    );

    List<ReportDetailVO> getReportDetails(
            @Param("groupNo") String groupNo,
            @Param("shiftNo") String shiftNo,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime
    );

}
