package com.goafanti.common.dao;

import com.goafanti.common.model.ContractTask;
import com.goafanti.common.model.ContractTaskExample;
import com.goafanti.techproject.bo.TaskDetailBo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ContractTaskMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	long countByExample(ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int deleteByExample(ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int insert(ContractTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int insertSelective(ContractTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	List<ContractTask> selectByExampleWithBLOBs(ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	List<ContractTask> selectByExample(ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	ContractTask selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByExampleSelective(@Param("record") ContractTask record, @Param("example") ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByExampleWithBLOBs(@Param("record") ContractTask record, @Param("example") ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByExample(@Param("record") ContractTask record, @Param("example") ContractTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByPrimaryKeySelective(ContractTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByPrimaryKeyWithBLOBs(ContractTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table contract_task
	 * @mbg.generated  Fri Mar 02 15:45:51 CST 2018
	 */
	int updateByPrimaryKey(ContractTask record);

	TaskDetailBo selectProjectTaskDetail(String taskId);
	
	
	List<ContractTask> selectlistContractTask();

	List<String> slectbyOrderNo(String orderNo);

	TaskDetailBo selectByOrderNoAndUserName(String taskId);
}