package com.foreverwin.mesnac.quality.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.foreverwin.mesnac.meapi.model.UserGroup;
import com.foreverwin.mesnac.quality.model.SelfReport;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 自报代办事项 Mapper 接口
 * </p>
 *
 * @author Philip
 * @since 2021-08-20
 */
@Repository
public interface SelfReportMapper extends BaseMapper<SelfReport> {

    List<SelfReport> selectListByCondition(@Param("ew") QueryWrapper<SelfReport> ew, @Param("locale") String locale, @Param("startTime") LocalDate startTime, @Param("endTime")  LocalDate endTime, @Param("userGroupList")List<UserGroup> userGroupList);

    /*查询设备和设备上的检验人员*/
    List<SelfReport> selectResourceAndCheckUsr(@Param("site") String site);

}