Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
Project
Project
Details
Activity
Releases
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
liudong1993
Property
Commits
c0a9882a
Commit
c0a9882a
authored
Aug 10, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
787bfdcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
WarehouseOutController.cs
Property.WebApi/Controllers/Mall/WarehouseOutController.cs
+10
-6
No files found.
Property.WebApi/Controllers/Mall/WarehouseOutController.cs
View file @
c0a9882a
...
...
@@ -285,6 +285,7 @@ namespace Property.WebApi.Controllers.Mall
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
GoodsId
==
item
.
Key
.
GoodsId
&&
x
.
SpecificationSort
==
item
.
Key
.
SpecificationSort
).
ToList
().
ForEach
(
x
=>
x
.
TenantId
=
oldOrderGoods
.
TenantId
);
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
GoodsId
==
item
.
Key
.
GoodsId
&&
x
.
SpecificationSort
==
item
.
Key
.
SpecificationSort
).
ToList
().
ForEach
(
x
=>
x
.
MallBaseId
=
oldOrderGoods
.
MallBaseId
);
if
(
oldOrderGoods
==
null
)
{
var
nowOrderGoods
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
GoodsId
==
item
.
Key
.
GoodsId
&&
x
.
SpecificationSort
==
item
.
Key
.
SpecificationSort
).
FirstOrDefault
();
...
...
@@ -479,16 +480,19 @@ namespace Property.WebApi.Controllers.Mall
ApplyId
=
applyModel
.
ID
,
ID
=
0
,
OrderId
=
applyModel
.
WarehouseOutGoodsDetail
List
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
OrderId
??
0
,
GoodsId
=
applyModel
.
WarehouseOutGoodsDetail
List
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
GoodsId
??
0
,
OrderId
=
oldModel
.
WarehouseOutGoods
List
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
OrderId
??
0
,
GoodsId
=
oldModel
.
WarehouseOutGoods
List
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
GoodsId
??
0
,
Status
=
0
,
IsOut
=
1
,
OrderGoodsId
=
item
.
Key
.
OrderGoodsId
,
OrderNo
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
OrderNo
??
""
,
GoodsName
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
GoodsName
,
Specification
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
Specification
,
SpecificationSort
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
SpecificationSort
,
ProductCode
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
ProductCode
,
GoodsName
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
GoodsName
,
Specification
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
Specification
,
SpecificationSort
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
SpecificationSort
,
NewGoodsName
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
NewGoodsName
,
NewSpecification
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
NewSpecification
,
NewSpecificationSort
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
NewSpecificationSort
,
ProductCode
=
oldModel
.
WarehouseOutGoodsList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
).
FirstOrDefault
()?.
ProductCode
,
Number
=
applyModel
.
WarehouseOutGoodsDetailList
.
Where
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
CostMoney
==
item
.
Key
.
CostMoney
).
Count
(),
TenantId
=
applyModel
.
TenantId
,
MallBaseId
=
applyModel
.
MallBaseId
,
...
...
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