package market.Mes.Cuttolength.Plan.mapper;
import market.Mes.Cuttolength.Plan.vo.PlnCuttolengthPlan;

import org.apache.ibatis.annotations.Update;

import com.hnshituo.orm.GenericMapper;

public interface PlnCuttolengthPlanMapper extends GenericMapper<PlnCuttolengthPlan,Object> {

	// 修改横剪计划表： QUANTITY 数量 += 1;   TOTALWEIGHT 总重量 += 虚拟物料号单重
	void doUpdatePlaned(PlnCuttolengthPlan plp);

	// 修改横剪主计划状态
	void doUpdate(PlnCuttolengthPlan plp);

	//删除横剪计划主表数据
	void doDeleteClPlanNo(PlnCuttolengthPlan pp);
	
	int doquery(String vProcessNo);

	@Update(" update PLN_CUTTOLENGTH_PLAN set plan_seq = #{param1.plan_seq} where cl_plan_no = #{param1.cl_plan_no} and plan_seq = #{param2}")
	int doUpdateSeq(PlnCuttolengthPlan pln, Integer i);
	
}
