package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderTask;
import com.goafanti.common.model.TOrderTaskExample;
import com.goafanti.order.bo.TOrderTaskBo;
import com.goafanti.order.bo.TOrderTaskDetailBo;
import com.goafanti.order.bo.TOrderTaskListBo;

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

public interface TOrderTaskMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	long countByExample(TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int deleteByExample(TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int insert(TOrderTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int insertSelective(TOrderTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	List<TOrderTask> selectByExampleWithBLOBs(TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	List<TOrderTask> selectByExample(TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	TOrderTask selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByExampleSelective(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByExampleWithBLOBs(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByExample(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByPrimaryKeySelective(TOrderTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByPrimaryKeyWithBLOBs(TOrderTask record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
	 * @mbg.generated  Thu Jun 11 09:59:01 CST 2020
	 */
	int updateByPrimaryKey(TOrderTask record);

	List<TOrderTaskBo> selectOrderTask(String orderNo);

	TOrderTaskDetailBo getOrderTaskDetail(String id);

	TOrderTask selectBySuperId(String superId);
	
	List<TOrderTask> getReceiverByOid(String oid);

	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId, @Param("type")Integer type);

	String selectEstimateCost(String orderNo);

	List<String> listNameByDepAndName(@Param("orderNo")String orderNo, @Param("type")Integer type);

	List<TOrderTaskListBo> splitProjectList(Integer tid);

	List<TOrderTaskBo> selectOrderTaskAll(String orderNo);

	String selectByidGetCname(String pid);

	void updateByOutsourceToOrderNo(@Param("orderNo")String orderNo, @Param("type")Integer type);

	int insertSelectiveGetId(TOrderTask tn);

	List<String> getLockId(@Param("orderNo")String orderNo, @Param("aid")String aid, @Param("uid")String uid);

}