package market.tcp.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import market.Cm.vo.CmCostAcmWe;
import market.tcp.vo.TcpEleDst;

import com.hnshituo.orm.GenericMapper;

public interface TcpEleDstMapper extends GenericMapper<TcpEleDst,Object> {
	
	//获取某天某电表的值
	public Double doQueryEleByMeterno(String work_date,String meter_no);
	//获取某时间段某电表的值
	public List<CmCostAcmWe> doQueryEleByMeterno2(String startTime,String endTime);
	
	//2次归集：获取产量
	public Double doGetTh(String work_date);//退火
	public Double doGetPz(String work_date);//平整
	public Double doGet12mm(String work_date);//12mm
	public Double doGet4mm(String work_date);//4mm
	public Double doGet3mm(String work_date);//3mm
	
	@Delete("delete from tcp_ele_dst t where t.work_date = #{work_date}")
	public void doDeleteTcpEleDst(@Param("work_date")String work_date);
}
