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

import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.workleave.entity.WorkLeave;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@MyBatisDao
public interface WorkLeaveDao extends CrudDao<WorkLeave> {
    /**
     * 更新流程实例ID
     * @return
     */
    public int updateProcessInstanceId(WorkLeave workLeave);

    /**
     * 根据流程实例ID获取
     * @param processInstanceId
     * @return
     */
    public WorkLeave getByProcessInstanceId(String processInstanceId);
    /**
     * 根据时间和档案id查询数据
     * @param staffId,time
     * @return
     */
    public WorkLeave getByStaffIdAndTime(@Param("staffId") String staffId, @Param("time") String time);

    List<WorkLeave> findListValidateTime(String staffId);
}