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.
153 lines
3.9 KiB
153 lines
3.9 KiB
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();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void RepairHistoryItemCount()
|
|
{
|
|
dataRepairBusiness.RepairHistoryItemCount();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void RepairPurchaseSkuLastPurchasePriceCost()
|
|
{
|
|
dataRepairBusiness.RepairPurchaseSkuLastPurchasePriceCost();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void RepairPurchaseSchemeLastPurchasePrice()
|
|
{
|
|
dataRepairBusiness.RepairPurchaseSchemeLastPurchasePrice();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void SyncProductCategory()
|
|
{ dataRepairBusiness.SyncProductCategory(); }
|
|
|
|
[HttpPost]
|
|
public void SyncPurchaserName()
|
|
{
|
|
dataRepairBusiness.SyncPurchaserName();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 定时补齐采购商主营类目
|
|
/// </summary>
|
|
[HttpPost]
|
|
public void SyncPurchaserCategory()
|
|
{
|
|
dataRepairBusiness.SyncPurchaserCategory();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void RepairPurchaserLocation()
|
|
{
|
|
dataRepairBusiness.RepairPurchaserLocation();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void SyncHyCats()
|
|
{
|
|
dataRepairBusiness.SyncHyCats();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void ExportQTSpuAndJDSku()
|
|
{
|
|
dataRepairBusiness.ExportQTSpuAndJDSku();
|
|
}
|
|
|
|
[HttpPost]
|
|
public void BelongBarginTeam()
|
|
{
|
|
dataRepairBusiness.BelongBarginTeam();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 比较不在B里的订单
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<string> RepairCBOrder()
|
|
{
|
|
return dataRepairBusiness.RepairCBOrder();
|
|
}
|
|
}
|
|
}
|
|
|