package com.yeejoin.precontrol.common.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.precontrol.common.dto.CommonPageableDto;
import com.yeejoin.precontrol.common.entity.ProjectClock;
import com.yeejoin.precontrol.common.vo.ProjectClockVo;

/**
 * 项目入离岗打卡 Mapper 接口
 *
 * @author duanwei
 * @date 2020-07-22
 */
public interface ProjectClockMapper extends BaseMapper<ProjectClock> {

	int count(@Param("projectId") Long projectId, @Param("companyId") Long companyId,
			@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("contract") String contract,
			@Param("isSign") Boolean isSign);

	int dutyCount(@Param("orgcode") String orgcode, @Param("startDate") Date startDate,
			@Param("endDate") Date endDate, @Param("isFBS")boolean isFBS);
	
	IPage<ProjectClockVo> dutyList(Page<ProjectClockVo> page,ProjectClockVo projectClockVo);
	
}
