|
|
|
using BBWYB.Server.Business;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
namespace BBWYB.Server.API.Controllers
|
|
|
|
{
|
|
|
|
|
|
|
|
public class DataRepairController : BaseApiController
|
|
|
|
{
|
|
|
|
private DataRepairBusiness dataRepairBusiness;
|
|
|
|
|
|
|
|
public DataRepairController(IHttpContextAccessor httpContextAccessor, DataRepairBusiness dataRepairBusiness) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.dataRepairBusiness = dataRepairBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 手动订阅快递100
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="waybillNo"></param>
|
|
|
|
/// <param name="targetCompanyCode"></param>
|
|
|
|
[HttpPost("{waybillNo}/{targetCompanyCode}")]
|
|
|
|
public void SubscribeKD100([FromRoute] string waybillNo, [FromRoute] string targetCompanyCode)
|
|
|
|
{
|
|
|
|
dataRepairBusiness.SubscribeKD100(waybillNo, targetCompanyCode);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 修复订单Sku成本
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost]
|
|
|
|
public void SupplementOrderSkuCost()
|
|
|
|
{
|
|
|
|
dataRepairBusiness.SupplementOrderSkuCost();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public void SupplementPurchaserInfo()
|
|
|
|
{
|
|
|
|
dataRepairBusiness.SupplementPurchaserInfo();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 补采购方案分组
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost]
|
|
|
|
public void SupplementPurchaseSchemeGroup()
|
|
|
|
{
|
|
|
|
dataRepairBusiness.SupplementPurchaseSchemeGroup();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 手动处理待核算
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost]
|
|
|
|
public void RepairOrderStateToCheckComputation()
|
|
|
|
{
|
|
|
|
dataRepairBusiness.RepairOrderStateToCheckComputation();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public void SyncCCancelOrder()
|
|
|
|
{ dataRepairBusiness.SyncCCancelOrder(); }
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public void BSyncToC()
|
|
|
|
{ dataRepairBusiness.BSyncToC(); }
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public void SyncHistoryPurchaseScheme()
|
|
|
|
{ dataRepairBusiness.SyncHistoryPurchaseScheme(); }
|
|
|
|
|
|
|
|
[HttpPost]
|
|
|
|
public void BatchCompleteOrder()
|
|
|
|
{
|
|
|
|
dataRepairBusiness.BatchCompleteOrder();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|