package com.zc.business.mapper;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.zc.business.domain.DcShifts;
import com.zc.business.domain.DcShiftsRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.hssf.record.DConRefRecord;

/**
 * 值班Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public interface DcShiftsMapper 
{
    /**
     * 查询值班
     * 
     * @param id 值班主键
     * @return 值班
     */
    public DcShifts selectDcShiftsById(Long id);

    /**
     * 查询值班列表
     * 
     * @param dcShifts 值班
     * @return 值班集合
     */
    List<DcShifts> selectDcShiftsList(DcShifts dcShifts);

    /**
     * 新增值班
     * 
     * @param dcShifts 值班
     * @return 结果
     */
    int insertDcShifts(DcShifts dcShifts);
    //新增值班时的操作日志
    int insertDcShiftsRecord(DcShiftsRecord dcShiftsRecord);

    /**
     * 修改值班
     * 
     * @param dcShifts 值班
     * @return 结果
     */
    int updateDcShifts(DcShifts dcShifts);

    /**
     * 删除值班
     * 
     * @param id 值班主键
     * @return 结果
     */
    int deleteDcShiftsById(Long id);

    /**
     * 批量删除值班
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteDcShiftsByIds(Long[] ids);
    //手机号查询人员信息
    HashMap<String,Object> contactNumber(String contactNumber);
    //路管驻点名称查询路管驻点id
    HashMap<String,Object> selectStationId(@Param("stationName") String stationName);
    //根据创建时间获取信息
    public DcShifts selectDcShiftsByCreateTime(Long  id);

    /**
     * 查询值班
     *
     * @param id 值班主键
     * @return 值班
     */
    public DcShifts selectDcShiftsByEmployeesId(Long id);
    //查询操作记录表
    public List<DcShiftsRecord> selectDcShiftsRecord();
    //根据驻点和时间查询人员
    public List<HashMap<String,Object>> selectStation(@Param("station") String station,@Param("date") Date date);
}