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

import market.Mes.Pickle.Plan.vo.PlnPicklePlanDetail;

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

import com.hnshituo.orm.GenericMapper;

public interface PlnPicklePlanDetailMapper extends GenericMapper<PlnPicklePlanDetail,Object> {

	@Delete("delete from PLN_PICKLE_PLAN_DETAIL t where t.pc_plan_no = #{pc_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doDelete(PlnPicklePlanDetail p);

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


	@Update("update PLN_PICKLE_PLAN_DETAIL t  set t.status = #{status}  where t.pc_plan_no = #{pc_plan_no} and t.object_no_vt = #{object_no_vt}")
	void doUpdate(PlnPicklePlanDetail plpd);

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

	List<PlnPicklePlanDetail> doQuery3(String v_mch_code, String v_material_no);
}

