package com.goafanti.common.dao;

import com.goafanti.common.model.TOrderDun;
import com.goafanti.common.model.TOrderDunExample;
import com.goafanti.order.bo.OrderDunTaskBo;
import com.goafanti.order.bo.TOrderNewBo;

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

public interface TOrderDunMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    long countByExample(TOrderDunExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int deleteByExample(TOrderDunExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int insert(TOrderDun record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int insertSelective(TOrderDun record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    List<TOrderDun> selectByExample(TOrderDunExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    TOrderDun selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int updateByExampleSelective(@Param("record") TOrderDun record, @Param("example") TOrderDunExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int updateByExample(@Param("record") TOrderDun record, @Param("example") TOrderDunExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int updateByPrimaryKeySelective(TOrderDun record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table t_order_dun
     *
     * @mbg.generated Mon Nov 19 16:53:48 CST 2018
     */
    int updateByPrimaryKey(TOrderDun record);


    

	List<TOrderDun> selectByOrderNoDunSubject(String orderNo);

	List<TOrderNewBo> getOrderDunData(@Param("name")String name,@Param("orderNo") String orderNo,@Param("adminName") String adminName,@Param("depId") String depId, @Param("starTime")String starTime, @Param("endTime")String endTime);

	List<OrderDunTaskBo> getTaskAllOrderDun();

	int checkOrderDun(@Param("dunSubject")Integer dunSubject, @Param("orderNo")String orderNo);

	List<TOrderDun> selectByOrderNo(String orderNo);

	int  deleteByOrderNo(String orderNo);

	void insertBatch(List<TOrderDun> newtd1);
}