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

import market.Mes.Rolling.Plan.vo.PlnRollingPlanDetail;

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

import com.hnshituo.orm.GenericMapper;

public interface PlnRollingPlanDetailMapper extends GenericMapper<PlnRollingPlanDetail,Object> {
	
	@Delete("delete from PLN_ROLLING_PLAN_DETAIL t where t.rl_plan_no = #{rl_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doDelete(PlnRollingPlanDetail p);

	@Update("update PLN_ROLLING_PLAN_DETAIL t  set t.status = #{status} ,t.sender = #{sender,jdbcType=VARCHAR} , t.send_date = #{send_date,jdbcType=TIMESTAMP} where t.rl_plan_no = #{rl_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doUpdateStatus(PlnRollingPlanDetail pcc);


	@Update("update PLN_ROLLING_PLAN_DETAIL t  set t.status = #{status}  where t.rl_plan_no = #{rl_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doUpdate(PlnRollingPlanDetail plpd);
	
	void doUpdate1(String string, String string2);

	List<PlnRollingPlanDetail> doQuery3(String v_mch_code, String v_entry_coil_no);

	void doUpdate2(String v_opr_name, String plan_no, String entry_coil_no);
	
	void doUpDelPdiStatus(String plan_no, String entry_coil_no);

	void doUpdate3(String v_operator, String sr_plan_no, String v_entry_coil_no);

	void doUpdate4(String string, String sr_plan_no, String v_entry_coil_no);

	@Update("update pln_rolling_plan_detail set send_flag=null")
	void updateTest();
	
	@Update(" update PLN_ROLLING_PLAN_DETAIL set rl_seq = #{param1.rl_seq} where object_no_vt = #{param1.object_no_vt} and rl_seq = #{param2}")
	int UpdRlSeq(PlnRollingPlanDetail pln, Integer i);
	
}
