package io.renren.modules.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.business.entity.BusinessWorkerCqEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 员工出勤表
 * 
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2022-09-20 11:26:31
 */
@Mapper
public interface BusinessWorkerCqDao extends BaseMapper<BusinessWorkerCqEntity> {
    int selectBydateDay(@Param("dateDay") String dateDay);

    List<BusinessWorkerCqEntity> querySearchList(Map<String, Object> params);

    List<Map<String, Object>> querySearchListAll(@Param("dateDay") String dateDay);

    /**
     * 支出明细中获取出勤记录信息
     * @param params
     * @return
     */
    List<BusinessWorkerCqEntity> cqjlList(Map<String, Object> params);

    /**
     * 用ids 更新未通过状态
     * @param approvalId
     */
    void updateNoPassByIds(@Param("approvalId") String approvalId);

    /**
     * 查询人员施工时间
     * @param params
     * @return
     */
    List<Map<String, Object>> queryWorkerTimeList(@Param("userId") String userId,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
