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

import com.jeeplus.modules.workcontractinfo.entity.WorkContractInfo;
import java.util.List;
import com.jeeplus.common.persistence.CrudDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.workcontractrecord.entity.WorkContractRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 合同归档DAO接口
 * @author lw
 * @version 2018-06-08
 */
@MyBatisDao
public interface WorkContractRecordDao extends CrudDao<WorkContractRecord> {

	public List<WorkContractInfo> findListByworkContractInfo(WorkContractInfo workContractInfo);
	/**
	 * 更新流程实例ID
	 * @return
	 */
	public int updateProcessInstanceId(WorkContractRecord workContractRecord);

	/**
	 * 根据流程实例ID获取
	 * @param processInstanceId
	 * @return
	 */
	public WorkContractRecord getByProcessInstanceId(String processInstanceId);
	//更新归档状态
	public int updateRecordStatus(String id);
	//按照合同编号获取最新的归档编号
	public String findRecordNum(@Param("num") String num);
}