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

import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceDto;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.MemberDto;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.SaveAttendanceDto;
import com.elephant.framework.galaxy.aroad.module.attendance.entity.Attendance;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 排班表
 *
 * @author songwenjie
 * @date 2019-04-11 10:09:46
 */
public interface AttendanceService extends IService<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: [attendanceDto]
     * @return: void
     * @Author: songwenjie
     * @Date: 2019/4/18
     */
    boolean autoSave(SaveAttendanceDto<Integer> attendanceDto);

    /**
     * @Description:  添加排班（手动输入值班人员）
     * @Param: [attendanceDto]
     * @return: boolean
     * @Author: songwenjie
     * @Date: 2019/4/18
     */
    boolean manualSave(SaveAttendanceDto<MemberDto> attendanceDto);
}
