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

import market.Mes.Tpm.Design.vo.PlnSkinrollingDsnMain;
import market.Mes.Tpm.Design.vo.PlnSkinrollingDsnMultinfoSum;

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

import com.hnshituo.orm.GenericMapper;

public interface PlnSkinrollingDsnMainMapper extends GenericMapper<PlnSkinrollingDsnMain,Object> {

	List<PlnSkinrollingDsnMultinfoSum> doQueryWaitPlan(String sWhere1, String sWhere2, String sWhere3,
			PlnSkinrollingDsnMain pdm, String memo);

	List<PlnSkinrollingDsnMultinfoSum> doQueryCompletePlan(String sWhere0,
			String sWhere1, String sWhere2, String sWhere3,
			PlnSkinrollingDsnMain pdm);

	@Update("update PLN_SKINROLLING_DSN_MAIN set  design_quantity=(nvl(design_quantity,0)+#{design_quantity}),design_weight=(nvl(design_weight,0)+#{design_weight}) where sr_design_no=#{sr_design_no}")
	void doUpdatePlanedWgt(PlnSkinrollingDsnMain pldm);

	@Delete(" delete from PLN_SKINROLLING_DSN_MAIN  where sr_design_no = #{v_dsn_no}")
	void doDelete(String v_dsn_no);
}
