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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceDto;
import com.elephant.framework.galaxy.aroad.module.attendance.entity.Attendance;

import java.util.List;

/**
 * 排班表
 *
 * @author songwenjie
 * @date 2019-04-11 10:09:46
 */
public interface AttendanceMapper extends BaseMapper<Attendance> {

    /** 
    * @Description: 查询部门下的排班计划
    * @Param: [deptId] 
    * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceDto> 
    * @Author: songwenjie 
    * @Date: 2019/4/16 
    */ 
    List<AttendanceDto> getAttendance(int deptId);
    
    /** 
    * @Description: 插入排班计划并且返回主键
    * @Param: [attendance] 
    * @return: int 
    * @Author: songwenjie 
    * @Date: 2019/4/18 
    */ 
    Integer saveAttendance(Attendance attendance);

    /** 
    * @Description: 查询排班计划id
    * @Param: [attendance] 
    * @return: java.lang.Integer 
    * @Author: songwenjie 
    * @Date: 2019/4/18 
    */ 
    Integer getAttendanceId(Attendance attendance);
}
