Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
a713b341
Commit
a713b341
authored
Oct 12, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接推送调拨计划的接口
parent
dec77bd0
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
0 deletions
+83
-0
ApiUtility.cs
AutoTurnOver.DB/ApiUtility.cs
+27
-0
lm_dao.cs
AutoTurnOver.DB/lm_dao.cs
+2
-0
AimsCreateAllotScheduleRequestDto.cs
...rnOver.Models/ApiDto/AimsCreateAllotScheduleRequestDto.cs
+44
-0
appsettings.dev.json
ResetOutofstock/appsettings.dev.json
+3
-0
appsettings.json
ResetOutofstock/appsettings.json
+3
-0
appsettings.prod.json
ResetOutofstock/appsettings.prod.json
+4
-0
No files found.
AutoTurnOver.DB/ApiUtility.cs
View file @
a713b341
...
@@ -949,5 +949,32 @@ where t1.`code`=@code limit 1
...
@@ -949,5 +949,32 @@ where t1.`code`=@code limit 1
return
new
List
<
PdsProviderProductSalesDto
>();
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
(
"推送调拨计划异常"
)
}
}
}
}
}
}
AutoTurnOver.DB/lm_dao.cs
View file @
a713b341
...
@@ -62,5 +62,7 @@ where t2.hq_type in ('海外仓','第三方仓') and t1.warehouse_code in @wareh
...
@@ -62,5 +62,7 @@ where t2.hq_type in ('海外仓','第三方仓') and t1.warehouse_code in @wareh
}
}
}
}
}
}
AutoTurnOver.Models/ApiDto/AimsCreateAllotScheduleRequestDto.cs
0 → 100644
View file @
a713b341
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
;
}
}
}
ResetOutofstock/appsettings.dev.json
View file @
a713b341
...
@@ -45,5 +45,8 @@
...
@@ -45,5 +45,8 @@
"base"
:
"http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus"
,
"base"
:
"http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus"
,
"character"
:
"http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus"
,
"character"
:
"http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus"
,
"character_list"
:
"http://api.skums.bailuntec.com/api/sku/productcommon/getproductdictionarybycode?code=TagsProCharacter"
"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"
}
}
}
}
ResetOutofstock/appsettings.json
View file @
a713b341
...
@@ -46,5 +46,8 @@
...
@@ -46,5 +46,8 @@
"base"
:
"http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus"
,
"base"
:
"http://api.skums.bailuntec.com/api/sku/productsku/gmtproductskus"
,
"character"
:
"http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus"
,
"character"
:
"http://api.skums.bailuntec.com/api/sku/productsku/productskubyskus"
,
"character_list"
:
"http://api.skums.bailuntec.com/api/sku/productcommon/getproductdictionarybycode?code=TagsProCharacter"
"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"
}
}
}
}
ResetOutofstock/appsettings.prod.json
View file @
a713b341
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
"base"
:
"http://10.0.8.13:8000/api/sku/productsku/gmtproductskus"
,
"base"
:
"http://10.0.8.13:8000/api/sku/productsku/gmtproductskus"
,
"character"
:
"http://10.0.8.13:8000/api/sku/productsku/productskubyskus"
,
"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"
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment