package cn.estsh.i3plus.ext.mes.api.base.bu;

import cn.estsh.i3plus.ext.mes.pojo.bean.MesShiftProdCenterRecord;
import cn.estsh.i3plus.ext.mes.pojo.model.bu.BuWorkTimeDetailModel;
import cn.estsh.i3plus.pojo.base.bean.ListPager;
import cn.estsh.i3plus.pojo.base.common.Pager;
import io.swagger.annotations.ApiOperation;

/**
 * @Author: xinwang.yi
 * @CreateDate: 2022/09/27 15:06 下午
 * @Description:
 **/
public interface IBuWorkTimeDetailService {
    /**
     * 新增停开机记录
     *
     * @param mesShiftProdCenterRecord
     * @return
     */
    @ApiOperation(value = "新增停开机记录", notes = "新增停开机记录")
    MesShiftProdCenterRecord insertWorkTimeDetail(MesShiftProdCenterRecord mesShiftProdCenterRecord);

    /**
     * 按条件分页查询停开机记录信息
     *
     * @param workTimeDetailModel
     * @param pager
     * @return
     */
    @ApiOperation(value = "按条件分页查询停开机记录信息", notes = "按条件分页查询停开机记录信息")
    ListPager<BuWorkTimeDetailModel> queryWorkTimeDetailByPager(BuWorkTimeDetailModel workTimeDetailModel, Pager pager);


    /**
     * 更新停开机记录信息
     *
     * @param mesShiftProdCenterRecord 停开机记录
     * @return 更新后的停开机记录
     */
    @ApiOperation(value = "更新停开机记录信息", notes = "更新停开机记录信息")
    MesShiftProdCenterRecord updateWorkTimeDetail(MesShiftProdCenterRecord mesShiftProdCenterRecord);


    /**
     * 删除
     * @param id
     * @return
     */
    @ApiOperation(value = "删除停开机记录", notes = "删除停开机记录")
    int deleteWorkTimeDetail(long id, String userName);

}
