You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 采购商聚合
|
|
/// </summary>
|
|
[HttpPost]
|
|
public void AutoAggregion()
|
|
{
|
|
aggregionPurchaserBusiness.AutoAggregion();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据指定采购商Id聚合
|
|
/// </summary>
|
|
/// <param name="purchaserIdList"></param>
|
|
[HttpPost]
|
|
public void AggregionByPurchaserIdList([FromBody] IList<string> purchaserIdList)
|
|
{
|
|
aggregionPurchaserBusiness.AggregionByPurchaserIdList(purchaserIdList);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 聚合所有采购商
|
|
/// </summary>
|
|
[HttpPost]
|
|
public void AggregionAllPurchaser()
|
|
{
|
|
aggregionPurchaserBusiness.AggregionAllPurchaser();
|
|
}
|
|
}
|
|
}
|
|
|