package com.goafanti.common.dao;

import com.goafanti.common.bo.OrderExamineBo;
import com.goafanti.common.model.OrderExamine;
import com.goafanti.common.model.OrderExamineExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface OrderExamineMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    long countByExample(OrderExamineExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int deleteByExample(OrderExamineExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int insert(OrderExamine record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int insertSelective(OrderExamine record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    List<OrderExamine> selectByExample(OrderExamineExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    OrderExamine selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int updateByExampleSelective(@Param("record") OrderExamine record, @Param("example") OrderExamineExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int updateByExample(@Param("record") OrderExamine record, @Param("example") OrderExamineExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int updateByPrimaryKeySelective(OrderExamine record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table order_examine
     *
     * @mbg.generated Thu Sep 26 16:21:54 CST 2019
     */
    int updateByPrimaryKey(OrderExamine record);

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

	int checkCountStatus(@Param("orderNo")String orderNo, @Param("type")Integer type,@Param("status")Integer status);

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

	int selectByOrderNoAndAid(@Param("orderNo") String orderNo,@Param("aid") String aid);

	void updateByOrderNo(@Param("orderNo") String orderNo,@Param("status")Integer status);

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