package com.goafanti.common.dao;

import com.goafanti.common.model.TTaskMid;

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  Fri Dec 25 14:38:43 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  Fri Dec 25 14:38:43 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  Fri Dec 25 14:38:43 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  Fri Dec 25 14:38:43 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  Fri Dec 25 14:38:43 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  Fri Dec 25 14:38:43 CST 2020
	 */

	int updateCostAmount(@Param("tid")Integer tid, @Param("count")BigDecimal costAmount);

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

	void updateCertificatesCountByTid(@Param("tid")Integer tid, @Param("count")Integer count);

	List<TTaskMid> selectListByTid(Integer tid);

	void updateByTid(TTaskMid tm);

	void addValue(Integer xzs, Integer bhs);


	TTaskMid selectCountBytid(@Param("tid")Integer tid, @Param("type")Integer type);
	

}