Commit a713b341 by 泽锋 李

对接推送调拨计划的接口

parent dec77bd0
......@@ -949,5 +949,32 @@ where t1.`code`=@code limit 1
return new List<PdsProviderProductSalesDto>();
}
}
/// <summary>
/// 推送调拨计划
/// </summary>
/// <param name="skus"></param>
/// <returns></returns>
public static AimsCreateAllotScheduleResponseDto AimsCreateAllotSchedule(AimsCreateAllotScheduleRequestDto data)
{
try
{
var url = ConfigHelper.GetValue("Trans:AimsCreateAllotSchedule");
var response_json = HttpHelper.Request(url, RequestType.POST, data.ToJson(), entype: "application/json", timeout: 1000 * 60 * 30);
var rData = response_json.ToObj<AimsCreateAllotScheduleResponseDto>();
if (!rData.isSuccess)
{
throw new Exception("推送调拨计划异常:"+rData.message);
}
else
{
return rData;
}
}
catch (Exception ex)
{
throw new Exception("推送调拨计划异常")
}
}
}
}
......@@ -62,5 +62,7 @@ where t2.hq_type in ('海外仓','第三方仓') and t1.warehouse_code in @wareh
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoTurnOver.Models.ApiDto
{
public class AimsCreateAllotScheduleRequestDto
{
/// <summary>
/// 调拨起始仓库编码
/// </summary>
public string SourceWareNo { get; set; }
/// <summary>
/// 调拨目的仓库编码
/// </summary>
public string TargetWareNo { get; set; }
/// <summary>
/// sku信息
/// </summary>
public List<SkuListDto> SkuList { get; set; }
public class SkuListDto
{
/// <summary>
/// 产品sku
/// </summary>
public string Sku { get; set; }
/// <summary>
/// 调拨数量
/// </summary>
public int Number { get; set; }
}
}
public class AimsCreateAllotScheduleResponseDto
{
public bool isSuccess { get; set; }
public string data { get; set; }
public string message { get; set; }
}
}
......@@ -45,5 +45,8 @@
"base": "http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus",
"character": "http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus",
"character_list": "http://api.skums.bailuntec.com/api/sku/productcommon/getproductdictionarybycode?code=TagsProCharacter"
},
"Trans": {
"AimsCreateAllotSchedule": "http://api.wms.bailuntec.com/api/services/app/AllotScheduleService/AimsCreateAllotSchedule"
}
}
......@@ -46,5 +46,8 @@
"base": "http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus",
"character": "http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus",
"character_list": "http://api.skums.bailuntec.com/api/sku/productcommon/getproductdictionarybycode?code=TagsProCharacter"
},
"Trans": {
"AimsCreateAllotSchedule": "http://api.wms.bailuntec.com/api/services/app/AllotScheduleService/AimsCreateAllotSchedule"
}
}
......@@ -45,6 +45,9 @@
"base": "http://10.0.8.13:8000/api/sku/productsku/gmtproductskus",
"character": "http://10.0.8.13:8000/api/sku/productsku/productskubyskus",
"character_list": "http://10.0.8.13:8000/api/sku/productcommon/getproductdictionarybycode?code=TagsProCharacter"
},
"Trans": {
"AimsCreateAllotSchedule": "http://api.wms.bailuntec.com/api/services/app/AllotScheduleService/AimsCreateAllotSchedule"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment