package com.goafanti.common.dao;

import com.goafanti.common.model.TaskHoursCount;
import com.goafanti.common.model.TaskHoursCountExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TaskHoursCountMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    long countByExample(TaskHoursCountExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int deleteByExample(TaskHoursCountExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int insert(TaskHoursCount record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int insertSelective(TaskHoursCount record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    List<TaskHoursCount> selectByExample(TaskHoursCountExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    TaskHoursCount selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int updateByExampleSelective(@Param("record") TaskHoursCount record, @Param("example") TaskHoursCountExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int updateByExample(@Param("record") TaskHoursCount record, @Param("example") TaskHoursCountExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int updateByPrimaryKeySelective(TaskHoursCount record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table task_hours_count
     *
     * @mbg.generated Wed Nov 20 10:55:29 CST 2019
     */
    int updateByPrimaryKey(TaskHoursCount record);

	int selectByAidAndTid(@Param("aid") String aid, @Param("tid") String tid);

	void updateByAidAndTid(@Param("aid") String aid, @Param("tid") String tid, @Param("hours") Double hours);

}