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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceLogDto;
import com.elephant.framework.galaxy.aroad.module.attendance.entity.AttendanceLogs;
import com.elephant.framework.galaxy.aroad.module.attendance.mapper.AttendanceLogsMapper;
import com.elephant.framework.galaxy.aroad.module.attendance.service.AttendanceLogsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * 值班日志表
 *
 * @author songwenjie
 * @date 2019-04-23 08:38:53
 */
@Service
public class AttendanceLogsServiceImpl extends ServiceImpl<AttendanceLogsMapper, AttendanceLogs> implements AttendanceLogsService {


    /**
     * @Description: 分页查询值班日志
     * @Param: [page, deptId]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.attendance.dto.AttendanceLogDto>
     * @Author: songwenjie
     * @Date: 2019/4/23
     */
    public IPage<AttendanceLogDto> getAttendanceLogsPage(Page page, Integer deptId){
        return baseMapper.getAttendanceLogsPage(page,deptId);
    }
}
