package com.goafanti.common.dao;

import com.goafanti.common.model.TTaskHours;
import com.goafanti.common.model.TTaskHoursExample;
import com.goafanti.order.bo.TOrderTaskListBo;

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

public interface TTaskHoursMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	long countByExample(TTaskHoursExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int deleteByExample(TTaskHoursExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int insert(TTaskHours record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int insertSelective(TTaskHours record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	List<TTaskHours> selectByExample(TTaskHoursExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	TTaskHours selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int updateByExampleSelective(@Param("record") TTaskHours record, @Param("example") TTaskHoursExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int updateByExample(@Param("record") TTaskHours record, @Param("example") TTaskHoursExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int updateByPrimaryKeySelective(TTaskHours record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_task_hours
	 * @mbg.generated  Mon Nov 26 10:26:19 CST 2018
	 */
	int updateByPrimaryKey(TTaskHours record);

	String getTaskSuperHours(String id);

	List<TOrderTaskListBo> getOrderDunData(String name, String taskId, String starTime, String endTime);


	List<TTaskHours> taskHoursDetailsList( @Param("taskId")String taskId,  @Param("aid")String aid);
}