/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.workout.dao;

import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.workout.entity.WorkOut;
import com.jeeplus.modules.workovertime.entity.WorkOvertime;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 出差申请DAO接口
 * @author ssrh
 * @version 2018-09-06
 */
@MyBatisDao
public interface WorkOutDao extends CrudDao<WorkOut> {

    /**
     * 更新流程实例ID
     * @return
     */
    public int updateProcessInstanceId(WorkOut workOut);

    /**
     * 根据流程实例ID获取
     * @param processInstanceId
     * @return
     */
    public WorkOut getByProcessInstanceId(String processInstanceId);

    /**
     * 根据时间和档案id查询数据
     * @param staffId,time
     * @return
     */
    public WorkOut getByStaffIdAndTime(@Param("staffId")String staffId, @Param("time")String time);

    List<WorkOut> findListValidateTime(String staffId);
}