package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.common.model.TOrderMonthReport;
import com.goafanti.common.model.TOrderMonthReportExample;
import com.goafanti.common.model.TOrderNew;
import com.goafanti.order.bo.OrderReportBo;

public interface TOrderMonthReportMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int countByExample(TOrderMonthReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int deleteByExample(TOrderMonthReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int insert(TOrderMonthReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int insertSelective(TOrderMonthReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	List<TOrderMonthReport> selectByExample(TOrderMonthReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	TOrderMonthReport selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int updateByExampleSelective(@Param("record") TOrderMonthReport record,
			@Param("example") TOrderMonthReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int updateByExample(@Param("record") TOrderMonthReport record,
			@Param("example") TOrderMonthReportExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int updateByPrimaryKeySelective(TOrderMonthReport record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_month_report
	 * @mbggenerated  Tue Nov 27 14:53:14 CST 2018
	 */
	int updateByPrimaryKey(TOrderMonthReport record);

	int insertLastMonthOrderData();
	
	List<OrderReportBo> exportMonthData(OrderReportBo orderReportBo);
	
	int checkData(OrderReportBo orderReportBo);
	
	List<OrderReportBo> getMonthReportByMonth(OrderReportBo orderReportBo);
	List<OrderReportBo> getYearReportByYear(OrderReportBo orderReportBo);
	
	int proofDataBySomeBody(TOrderNew orderNew);
	
	int updateYearReportData(String d);
	int insertLastYearOrderData();
	
	int insertBySome(TOrderNew on);
	
	int updateByMonth(Integer month);
	int updateByYear();
	
}