package market.Mes.anneal.Design.mapper;
import java.util.List;

import market.Mes.anneal.Design.vo.PlnAnnealDsnMain;
import market.Mes.anneal.Design.vo.PlnAnnealDsnMainSum;

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

import com.hnshituo.orm.GenericMapper;

public interface PlnAnnealDsnMainMapper extends GenericMapper<PlnAnnealDsnMain,Object> {

	List<PlnAnnealDsnMainSum> doQueryWaitPlan(String sWhere1, String sWhere2, String sWhere3,
			PlnAnnealDsnMain pdm, String string);

	List<PlnAnnealDsnMainSum> doQueryCompletePlan(String sWhere0,
			String sWhere1, String sWhere2, String sWhere3, PlnAnnealDsnMain pdm);

	@Update("update PLN_ANNEAL_DSN_MAIN set  design_quantity=(nvl(design_quantity,0)+#{design_quantity}),design_weight=(nvl(design_weight,0)+#{design_weight}) where an_design_no=#{an_design_no}")
	void doUpdatePlanedWgt(PlnAnnealDsnMain pldm);

	@Delete(" delete from PLN_ANNEAL_DSN_MAIN  where an_design_no = #{v_dsn_no}")
	void doDelete(@Param("v_dsn_no")String v_dsn_no);
}
