Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
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
pengjinyang
TakeStock
Commits
10540165
Commit
10540165
authored
Jul 01, 2019
by
pengjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
2f8f7716
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
1 deletion
+33
-1
ITakeStockService.cs
IService/TakeStock/ITakeStockService.cs
+9
-0
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+0
-0
TakeStockController.cs
TakeStock.API/Controllers/TakeStockController.cs
+12
-0
TakeStock.API.csproj
TakeStock.API/TakeStock.API.csproj
+1
-1
appsettings.json
TakeStock.API/appsettings.json
+1
-0
TakeStockAppService.cs
TakeStock.Application/TakeStock/TakeStockAppService.cs
+10
-0
No files found.
IService/TakeStock/ITakeStockService.cs
View file @
10540165
...
...
@@ -13,6 +13,8 @@ namespace IService.TakeStock
/// <returns></returns>
Task
<
bool
>
CreateTakeStockOrderAsync
(
TakeStockSchedule
record
,
List
<
TakeStockOrder
>
orders
);
Task
<
bool
>
ReTry
(
int
scheduleId
);
/// <summary>
/// 发起线下盘点
/// </summary>
...
...
@@ -27,6 +29,13 @@ namespace IService.TakeStock
/// <returns></returns>
Task
<
bool
>
Feedback
(
int
id
,
int
afterQuantity
,
string
description
);
/// <summary>
/// 取消盘点的订单
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task
<
bool
>
CancelOrder
(
int
id
);
///// <summary>
///// 冻结库存
///// </summary>
...
...
Service/TakeStock/TakeStockService.cs
View file @
10540165
This diff is collapsed.
Click to expand it.
TakeStock.API/Controllers/TakeStockController.cs
View file @
10540165
...
...
@@ -56,12 +56,24 @@ namespace TakeStock.API.Controllers
return
await
takeStockAppService
.
StartTakeStock
(
input
);
}
[
HttpGet
(
"ReTry"
)]
public
async
Task
<
bool
>
ReTry
(
int
scheduleId
)
{
return
await
takeStockAppService
.
ReTry
(
scheduleId
);
}
[
HttpPost
(
"Feedback"
)]
public
async
Task
<
bool
>
Feedback
([
FromBody
]
FeedbackInputDto
input
)
{
return
await
takeStockAppService
.
Feedback
(
input
);
}
[
HttpGet
(
"CancelOrder"
)]
public
async
Task
<
bool
>
CancelOrder
(
int
id
)
{
return
await
takeStockAppService
.
ReTry
(
id
);
}
// DELETE: api/ApiWithActions/5
[
HttpDelete
(
"{id}"
)]
public
void
Delete
(
int
id
)
...
...
TakeStock.API/TakeStock.API.csproj
View file @
10540165
...
...
@@ -32,6 +32,6 @@
<ProjectReference Include="..\TakeStock.SqlSugar\TakeStock.SqlSugar.csproj" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>
<ProjectExtensions><VisualStudio><UserProperties
appsettings_1json__JSONSchema=""
/></VisualStudio></ProjectExtensions>
</Project>
TakeStock.API/appsettings.json
View file @
10540165
...
...
@@ -16,6 +16,7 @@
"Localhost"
:
"server=gz-cdb-hqmznu0w.sql.tencentcdb.com;port=63523;database=bailun_wms;uid=root;password=#7kfnymAM$Y9-Ntf;Convert Zero Datetime=True;Allow User Variables=true;"
,
//
"Redis"
:
"127.0.0.1"
"Redis"
:
"172.31.1.74"
//
"Redis"
:
"129.204.97.78"
},
"App"
:
{
"CorsOrigins"
:
"*"
...
...
TakeStock.Application/TakeStock/TakeStockAppService.cs
View file @
10540165
...
...
@@ -27,6 +27,11 @@ namespace TakeStock.Application.TakeStock
return
await
takeStockService
.
CreateTakeStockOrderAsync
(
schedule
,
orders
);
}
public
async
Task
<
bool
>
ReTry
(
int
scheduleId
)
{
return
await
takeStockService
.
ReTry
(
scheduleId
);
}
public
async
Task
<
bool
>
StartTakeStock
(
StartTakeStockInputDto
input
)
{
return
await
takeStockService
.
StartTakeStock
(
input
.
Id
,
input
.
BeforeQuantity
);
...
...
@@ -36,5 +41,10 @@ namespace TakeStock.Application.TakeStock
{
return
await
takeStockService
.
Feedback
(
input
.
Id
,
input
.
AfterQuantity
,
input
.
Description
);
}
public
async
Task
<
bool
>
CancelOrder
(
int
id
)
{
return
await
takeStockService
.
CancelOrder
(
id
);
}
}
}
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