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

import market.Mes.Pickle.Design.vo.PlnPickleDsnMain;
import market.Mes.Pickle.Design.vo.PlnPickleDsnMainSum;

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 PlnPickleDsnMainMapper extends GenericMapper<PlnPickleDsnMain,Object> {


	List<PlnPickleDsnMainSum> doQueryWaitPlan(String sWhere1, String sWhere2, String sWhere3,
			PlnPickleDsnMain pdm, String string);

	List<PlnPickleDsnMainSum> doQueryCompletePlan(String sWhere0,
			String sWhere1, String sWhere2, String sWhere3, PlnPickleDsnMain pdm);

	@Update("update Pln_Pickle_DSN_MAIN set  design_quantity=(nvl(design_quantity,0)+#{design_quantity}),design_weight=(nvl(design_weight,0)+#{design_weight}) where pc_design_no=#{pc_design_no}")
	void doUpdatePlanedWgt(PlnPickleDsnMain pldm);

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

