package com.uas.platform.b2b.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.query.Procedure;
import org.springframework.stereotype.Repository;

import com.uas.platform.b2b.model.PurchaseOrderDone;

@Repository
public interface PurchaseOrderDoneDao extends JpaSpecificationExecutor<PurchaseOrderDone>, JpaRepository<PurchaseOrderDone, Long> {

	/**
	 * 更新已回复状态
	 * 
	 * @param venduu
	 */
	@Procedure(procedureName = "sale$orders_done_status_update")
	public void updateStatusForSaleDone(Long venduu);

	/**
	 * 更新已回复状态
	 * 
	 * @param venduu
	 */
	@Procedure(procedureName = "purc$orders_done_status_update")
	public void updateStatusForPurcDone(Long venduu);

}
