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
bf96b9c8
Commit
bf96b9c8
authored
Jun 20, 2019
by
pengjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存盘点反馈描述
parent
842c7417
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
ITakeStockService.cs
IService/TakeStock/ITakeStockService.cs
+1
-1
TakeStockService.cs
Service/TakeStock/TakeStockService.cs
+3
-2
FeedbackInputDto.cs
TakeStock.Application/TakeStock/Dto/FeedbackInputDto.cs
+2
-0
TakeStockAppService.cs
TakeStock.Application/TakeStock/TakeStockAppService.cs
+1
-1
No files found.
IService/TakeStock/ITakeStockService.cs
View file @
bf96b9c8
...
@@ -25,7 +25,7 @@ namespace IService.TakeStock
...
@@ -25,7 +25,7 @@ namespace IService.TakeStock
/// </summary>
/// </summary>
/// <param name="order"></param>
/// <param name="order"></param>
/// <returns></returns>
/// <returns></returns>
Task
<
bool
>
Feedback
(
int
id
,
int
afterQuantity
);
Task
<
bool
>
Feedback
(
int
id
,
int
afterQuantity
,
string
description
);
///// <summary>
///// <summary>
///// 冻结库存
///// 冻结库存
...
...
Service/TakeStock/TakeStockService.cs
View file @
bf96b9c8
...
@@ -271,12 +271,13 @@ namespace Service.TakeStock
...
@@ -271,12 +271,13 @@ namespace Service.TakeStock
/// </summary>
/// </summary>
/// <param name="order"></param>
/// <param name="order"></param>
/// <returns></returns>
/// <returns></returns>
public
async
Task
<
bool
>
Feedback
(
int
id
,
int
afterQuantity
)
public
async
Task
<
bool
>
Feedback
(
int
id
,
int
afterQuantity
,
string
description
)
{
{
var
order
=
orderRepository
.
Get
(
id
);
var
order
=
orderRepository
.
Get
(
id
);
order
.
AfterQuantity
=
afterQuantity
;
order
.
AfterQuantity
=
afterQuantity
;
order
.
LastModificationTime
=
DateTime
.
Now
;
order
.
LastModificationTime
=
DateTime
.
Now
;
var
record
=
await
orderRepository
.
UpdateAsync
(
order
,
"AfterQuantity"
,
"LastModificationTime"
);
order
.
Description
=
description
;
var
record
=
await
orderRepository
.
UpdateAsync
(
order
,
"AfterQuantity"
,
"LastModificationTime"
,
"Description"
);
bool
isSuccess
=
record
>
0
;
bool
isSuccess
=
record
>
0
;
if
(
isSuccess
)
if
(
isSuccess
)
BackgroundJob
.
Enqueue
(()
=>
ModifAndEnabledAsync
(
order
.
Id
));
BackgroundJob
.
Enqueue
(()
=>
ModifAndEnabledAsync
(
order
.
Id
));
...
...
TakeStock.Application/TakeStock/Dto/FeedbackInputDto.cs
View file @
bf96b9c8
...
@@ -9,5 +9,7 @@ namespace TakeStock.Application.TakeStock.Dto
...
@@ -9,5 +9,7 @@ namespace TakeStock.Application.TakeStock.Dto
public
int
Id
{
get
;
set
;
}
public
int
Id
{
get
;
set
;
}
public
int
AfterQuantity
{
get
;
set
;
}
public
int
AfterQuantity
{
get
;
set
;
}
public
string
Description
{
get
;
set
;
}
}
}
}
}
TakeStock.Application/TakeStock/TakeStockAppService.cs
View file @
bf96b9c8
...
@@ -34,7 +34,7 @@ namespace TakeStock.Application.TakeStock
...
@@ -34,7 +34,7 @@ namespace TakeStock.Application.TakeStock
public
async
Task
<
bool
>
Feedback
(
FeedbackInputDto
input
)
public
async
Task
<
bool
>
Feedback
(
FeedbackInputDto
input
)
{
{
return
await
takeStockService
.
Feedback
(
input
.
Id
,
input
.
AfterQuantity
);
return
await
takeStockService
.
Feedback
(
input
.
Id
,
input
.
AfterQuantity
,
input
.
Description
);
}
}
}
}
}
}
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