Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
d7becb78
Commit
d7becb78
authored
Aug 13, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
024a47cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
WarehouseOutController.cs
Mall.WebApi/Controllers/Property/WarehouseOutController.cs
+6
-6
No files found.
Mall.WebApi/Controllers/Property/WarehouseOutController.cs
View file @
d7becb78
...
@@ -146,8 +146,8 @@ namespace Mall.WebApi.Controllers.Property
...
@@ -146,8 +146,8 @@ namespace Mall.WebApi.Controllers.Property
//获取商品的出库规格物料信息
//获取商品的出库规格物料信息
var
goodsIds
=
string
.
Join
(
","
,
demodel
.
WarehouseOutGoodsList
.
Select
(
x
=>
x
.
NewGoodsId
));
var
goodsIds
=
string
.
Join
(
","
,
demodel
.
WarehouseOutGoodsList
.
Select
(
x
=>
x
.
NewGoodsId
));
var
materialList
=
propertyModule
.
GetSuppliesMaterialList
(
new
RB_Supplies_Material_Extend
{
GoodsIds
=
goodsIds
,
RB_Group_Id
=
requestParm
.
ERPGroupId
,
TenantId
=
requestParm
.
TenantId
,
MallBaseId
=
requestParm
.
MallBaseId
});
//
var materialList = propertyModule.GetSuppliesMaterialList(new RB_Supplies_Material_Extend { GoodsIds = goodsIds, RB_Group_Id = requestParm.ERPGroupId, TenantId = requestParm.TenantId, MallBaseId = requestParm.MallBaseId });
//
var materialList = propertyModule.GetHaveInventory(new RB_Supplies_Material_Extend { GoodsIds = goodsIds, RB_Group_Id = requestParm.ERPGroupId, TenantId = requestParm.TenantId, MallBaseId = requestParm.MallBaseId });
var
materialList
=
propertyModule
.
GetHaveInventory
(
new
RB_Supplies_Material_Extend
{
GoodsIds
=
goodsIds
,
RB_Group_Id
=
requestParm
.
ERPGroupId
,
TenantId
=
requestParm
.
TenantId
,
MallBaseId
=
requestParm
.
MallBaseId
});
foreach
(
var
item
in
demodel
.
WarehouseOutGoodsList
)
foreach
(
var
item
in
demodel
.
WarehouseOutGoodsList
)
{
{
if
(
item
.
NewNumber
<=
0
)
if
(
item
.
NewNumber
<=
0
)
...
@@ -164,10 +164,10 @@ namespace Mall.WebApi.Controllers.Property
...
@@ -164,10 +164,10 @@ namespace Mall.WebApi.Controllers.Property
{
{
return
ApiResult
.
Failed
(
"订单号:"
+
orderGoodsDetail
?.
OrderNo
+
"的商品:"
+
orderGoodsDetail
?.
GoodsName
+
"不存在物料请先同步"
);
return
ApiResult
.
Failed
(
"订单号:"
+
orderGoodsDetail
?.
OrderNo
+
"的商品:"
+
orderGoodsDetail
?.
GoodsName
+
"不存在物料请先同步"
);
}
}
//
if (!materialModel.InventoryNum.HasValue || (materialModel.InventoryNum ?? 0) <= 0)
if
(!
materialModel
.
InventoryNum
.
HasValue
||
(
materialModel
.
InventoryNum
??
0
)
<=
0
)
//
{
{
//
return ApiResult.Failed("订单号:" + orderGoodsDetail?.OrderNo + "的商品:" + orderGoodsDetail?.GoodsName + "库存不足");
return
ApiResult
.
Failed
(
"订单号:"
+
orderGoodsDetail
?.
OrderNo
+
"的商品:"
+
orderGoodsDetail
?.
GoodsName
+
"库存不足"
);
//
}
}
item
.
NewSpecificationSort
=
materialModel
.
SpecificationKey
;
item
.
NewSpecificationSort
=
materialModel
.
SpecificationKey
;
item
.
NewSpecification
=
materialModel
.
SpecificationName
;
item
.
NewSpecification
=
materialModel
.
SpecificationName
;
}
}
...
...
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