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.PurchaseOrderTodo;

@Repository
public interface PurchaseOrderTodoDao extends JpaSpecificationExecutor<PurchaseOrderTodo>, JpaRepository<PurchaseOrderTodo, Long> {

	/**
	 * 买家查询订单时更新待回复状态
	 * 
	 * @param enuu
	 */
	@Procedure(procedureName = "purc$orders_todo_status_update")
	public void updateStatusForPurc(Long enuu);

	/**
	 * 卖家查询订单时更新待回复状态
	 * 
	 * @param venduu
	 */
	@Procedure(procedureName = "sale$orders_todo_status_update")
	public void updateStatusForSale(Long venduu);
}
