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

import com.jeeplus.modules.workstaff.entity.WorkStaffBasicInfo;
import java.util.List;
import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.workrelationship.entity.WorkRelationship;
import org.apache.ibatis.annotations.Param;

/**
 * 劳动关系DAO接口
 * @author lw
 * @version 2018-07-31
 */
@MyBatisDao
public interface WorkRelationshipDao extends CrudDao<WorkRelationship> {

	public List<WorkStaffBasicInfo> findListByworkStaffBasicInfo(WorkStaffBasicInfo workStaffBasicInfo);
	/**
	 * 更新流程实例ID
	 * @return
	 */
	public int updateProcessInstanceId(WorkRelationship workRelationship);

	/**
	 * 根据流程实例ID获取
	 * @param processInstanceId
	 * @return
	 */
	public WorkRelationship getByProcessInstanceId(String processInstanceId);
	//历史关系
	public  List<WorkRelationship> getWorkRelationships(@Param("id") String id, @Param("staffId") String staffId);
	//更新提醒标记
	public int updateSign(WorkRelationship workRelationship);
	//定时检测合同终止数据
	public List<WorkRelationship> findLists(WorkRelationship workRelationship);
}