package com.elephant.framework.galaxy.aroad.module.attendance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceTemplateDto;
import com.elephant.framework.galaxy.aroad.module.attendance.entity.AttendanceTemplates;

import java.util.List;

/**
 * 班次表
 *
 * @author songwenjie
 * @date 2019-04-11 10:09:35
 */
public interface AttendanceTemplatesMapper extends BaseMapper<AttendanceTemplates> {

    /** 
    * @Description: 查询值班班次信息（用于下拉列表）
    * @Param: [] 
    * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.attendance.entity.AttendanceTemplates> 
    * @Author: songwenjie 
    * @Date: 2019/4/15 
    */ 
    List<AttendanceTemplates> getShiftSelection(int unitId);

    /** 
    * @Description: 分页查询值班班次信息
    * @Param: [page] 
    * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.attendance.entity.AttendanceTemplates>
    * @Author: songwenjie 
    * @Date: 2019/4/23 
    */ 
    IPage<AttendanceTemplateDto> getShiftPage(Page page,Integer unitId);

    /** 
    * @Description: 删除排班模板
    * @param: [shiftId]
    * @return: java.lang.Boolean 
    * @Author: songwenjie
    * @Date: 2019/5/21 
    */ 
    Boolean delTemplate(Integer shiftId);
}
