package com.yeejoin.amos.boot.module.common.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.common.api.dto.DutyShiftDto;
import com.yeejoin.amos.boot.module.common.api.entity.DutyShift;
import com.yeejoin.amos.boot.module.common.api.mapper.DutyShiftMapper;
import com.yeejoin.amos.boot.module.common.api.service.IDutyShiftService;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;

import java.util.List;

/**
 * 值班班次服务实现类
 *
 * @author system_generator
 * @date 2021-07-06
 */
@Service
public class DutyShiftServiceImpl extends BaseService<DutyShiftDto, DutyShift, DutyShiftMapper> implements IDutyShiftService {
    /**
     * 分页查询
     */
    public Page<DutyShiftDto> queryForDutyShiftPage(Page<DutyShiftDto> page, String appKey, Boolean isDelete) {
        return this.queryForPage(page, null, false, appKey, isDelete);
    }

    /**
     * 列表查询 示例
     */
    public List<DutyShiftDto> queryForDutyShiftList(String appKey, Boolean isDelete) {
        return this.queryForList("", false, appKey, isDelete);
    }

    public List<DutyShiftDto> queryForDutyShiftList(Boolean isDelete) {
        return this.queryForList("", false, isDelete);
    }
}
