Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / MeetScheduleService.java
package com.newfiber.api.pc.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.PageInfo;
import com.newfiber.api.core.commons.ResultObj;
import com.newfiber.api.pc.model.meet.MeetSchedule;
import com.newfiber.api.pc.model.vo.MeetScheduleDataVo;
import com.newfiber.api.pc.model.vo.MeetScheduleParam;
import com.newfiber.api.pc.model.vo.MeetScheduleVo;

/**
 * @Author:zzh
 * @CreateDate:2020/11/26 15:41
 * @Description:
 */
public interface MeetScheduleService extends IService<MeetSchedule> {

    /**
     * 分页列表
     * @param taskId
     * @param userName
     * @param startTime
     * @param endTime
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<MeetScheduleVo>  selectListByTime(Integer taskId, String userName, String startTime, String endTime, Integer pageNo, Integer pageSize);

    /**
     * 日历列表
     * @param taskId
     * @param userName
     * @param startTime
     * @param endTime
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<MeetScheduleDataVo> selectDataListByTime(Integer taskId,Integer taskType, String userName, String startTime, String endTime, Integer pageNo, Integer pageSize);

    /**
     * 添加自动排班任务
     * @param data
     * @return
     */
    ResultObj addTask(MeetScheduleParam data);

    /**
     * 给某一天添加排班数据
     * @param data
     * @return
     */
    int addOne(MeetSchedule data);

    /**
     * 查询当天值班人员
     * @return
     */
    MeetScheduleVo getOne();
}