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

import market.Mes.Rolling.Design.vo.PlnRollingDsnMain;
import market.Mes.Rolling.Design.vo.PlnRollingDsnMainSum;

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 PlnRollingDsnMainMapper extends GenericMapper<PlnRollingDsnMain,Object> {
	
	List<PlnRollingDsnMainSum> doQueryWaitPlan(String sWhere1, String sWhere2, String sWhere3,
			PlnRollingDsnMain pdm, String string);

	List<PlnRollingDsnMainSum> doQueryCompletePlan(String sWhere0,
			String sWhere1, String sWhere2, String sWhere3, PlnRollingDsnMain pdm);

	@Update("update PLN_Rolling_DSN_MAIN set  design_quantity=(nvl(design_quantity,0)+#{design_quantity}),design_weight=(nvl(design_weight,0)+#{design_weight}) where rl_design_no=#{rl_design_no}")
	void doUpdatePlanedWgt(PlnRollingDsnMain pldm);

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