package com.goafanti.common.dao;

import com.goafanti.common.model.TTaskMid;
import com.goafanti.common.model.TTaskMidExample;

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

public interface TTaskMidMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    long countByExample(TTaskMidExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int deleteByExample(TTaskMidExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int insert(TTaskMid record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int insertSelective(TTaskMid record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    List<TTaskMid> selectByExample(TTaskMidExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    TTaskMid selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int updateByExampleSelective(@Param("record") TTaskMid record, @Param("example") TTaskMidExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int updateByExample(@Param("record") TTaskMid record, @Param("example") TTaskMidExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int updateByPrimaryKeySelective(TTaskMid record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_task_mid
     *
     * @mbg.generated Thu Jun 18 15:57:30 CST 2020
     */
    int updateByPrimaryKey(TTaskMid record);


	int updatePaymentAmount(@Param("tid")Integer tid, @Param("paymentAmount")BigDecimal paymentAmount, @Param("type")Integer type);

	List<TTaskMid> selectByTid(Integer tid);

	void updateCostAmount(@Param("tid")Integer tid, @Param("count")BigDecimal count);
}