using BBWYB.Server.Business;
using Microsoft.AspNetCore.Mvc;
namespace BBWYB.Server.API.Controllers
{
public class AggregationPurchaserController : BaseApiController
{
private AggregionPurchaserBusiness aggregionPurchaserBusiness;
public AggregationPurchaserController(IHttpContextAccessor httpContextAccessor, AggregionPurchaserBusiness aggregionPurchaserBusiness) : base(httpContextAccessor)
{
this.aggregionPurchaserBusiness = aggregionPurchaserBusiness;
}
///
/// 采购商聚合
///
[HttpPost]
public void AutoAggregion()
{
aggregionPurchaserBusiness.AutoAggregion();
}
///
/// 根据指定采购商Id聚合
///
///
[HttpPost]
public void AggregionByPurchaserIdList([FromBody] IList purchaserIdList)
{
aggregionPurchaserBusiness.AggregionByPurchaserIdList(purchaserIdList);
}
///
/// 聚合所有采购商
///
[HttpPost]
public void AggregionAllPurchaser()
{
aggregionPurchaserBusiness.AggregionAllPurchaser();
}
}
}