package market.Mes.anneal.mapper;
import java.util.List;

import market.Mes.anneal.vo.PlnAnnealPlanDetail;

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

import com.hnshituo.orm.GenericMapper;

public interface PlnAnnealPlanDetailMapper extends GenericMapper<PlnAnnealPlanDetail,Object> {

	Integer doQueryCou(String v_mch_code, String v_plan_no,
			String v_object_no_vt, String v_material_no);

	List<PlnAnnealPlanDetail> doQuery(String v_mch_code, String v_plan_no,
			String v_object_no_vt, String v_material_no);

	void doUpdate(String v_plan_no, String v_object_no_vt, String v_opr_name);

	void doUpdate2(String v_plan_no, String v_object_no_vt);

	List<PlnAnnealPlanDetail> doQuery2(String plan_no, String in_mat_no);

	void doUpdate3(String plan_no, String in_mat_no);

	@Delete("delete from PLN_ANNEAL_PLAN_DETAIL t where t.an_plan_no = #{an_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doDelete(PlnAnnealPlanDetail p);

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

	void doUpdate4(String plan_no, String in_mat_no, String vOprName);

	@Update("update PLN_ANNEAL_PLAN_DETAIL t  set t.status = #{status}  where t.an_plan_no = #{an_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doUpdateWSum(PlnAnnealPlanDetail plpd);
}
