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
5d2511a8
Commit
5d2511a8
authored
Jul 30, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
3c096e6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
RB_WarehouseOut_Goods.cs
Mall.Model/Entity/Property/RB_WarehouseOut_Goods.cs
+15
-0
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+9
-5
WarehouseOutController.cs
Mall.WebApi/Controllers/Property/WarehouseOutController.cs
+3
-1
No files found.
Mall.Model/Entity/Property/RB_WarehouseOut_Goods.cs
View file @
5d2511a8
...
...
@@ -105,6 +105,21 @@ namespace Mall.Model.Entity.Property
public
string
NewSpecificationSort
{
get
;
set
;
}
/// <summary>
/// 商品id
/// </summary>
public
int
NewGoodsId
{
get
;
set
;
}
/// <summary>
/// 出库商品名称
/// </summary>
public
string
NewGoodsName
{
get
;
set
;
}
/// <summary>
/// 规格(出库的规格名称)
/// </summary>
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
5d2511a8
...
...
@@ -1533,7 +1533,8 @@ namespace Mall.WebApi.Controllers.MallBase
model
.
CarouselImageList
,
model
.
ServiceList
,
model
.
PresentFXGrade
,
model
.
PresentFXMonth
model
.
PresentFXMonth
,
model
.
Advertising
});
}
...
...
@@ -2053,7 +2054,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
else
if
(
Type
==
12
)
{
if
(
SupplierId
==
0
&&
req
.
TenantId
==
1
&&
req
.
MallBaseId
==
1
)
if
(
SupplierId
==
0
&&
req
.
TenantId
==
1
&&
req
.
MallBaseId
==
1
)
{
return
ApiResult
.
ParamIsNull
(
"请选择供应商"
);
}
...
...
@@ -2278,13 +2279,15 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SyncGoodsSpecificationCommission
()
{
public
ApiResult
SyncGoodsSpecificationCommission
()
{
var
req
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
TenantId
=
parms
.
GetInt
(
"TenantId"
,
0
);
int
MallBaseId
=
parms
.
GetInt
(
"MallBaseId"
,
0
);
if
(
TenantId
<=
0
||
MallBaseId
<=
0
)
{
if
(
TenantId
<=
0
||
MallBaseId
<=
0
)
{
return
ApiResult
.
Failed
();
}
...
...
@@ -2293,7 +2296,8 @@ namespace Mall.WebApi.Controllers.MallBase
{
return
ApiResult
.
Success
();
}
else
{
else
{
return
ApiResult
.
Failed
();
}
}
...
...
Mall.WebApi/Controllers/Property/WarehouseOutController.cs
View file @
5d2511a8
...
...
@@ -158,9 +158,11 @@ namespace Mall.WebApi.Controllers.Property
if
(
item
.
NewSpecificationSort
!=
item
.
SpecificationSort
)
//修改了规格的判断新规格是否在物料中存在
{
var
materialModel
=
materialList
.
Where
(
x
=>
x
.
GoodsId
==
orderGoodsDetailModel
.
GoodsId
&&
x
.
SpecificationKey
==
item
.
NewSpecificationSort
).
FirstOrDefault
();
var
orderGoodsDetail
=
orderGoodsList
.
Where
(
x
=>
x
.
Id
==
item
.
OrderGoodsId
).
FirstOrDefault
();
if
(
materialModel
==
null
)
{
return
ApiResult
.
Failed
(
"订单号:"
+
item
.
OrderNo
+
"的商品:"
+
item
.
GoodsName
+
"不存在物料请先同步"
);
return
ApiResult
.
Failed
(
"订单号:"
+
orderGoodsDetail
?.
OrderNo
+
"的商品:"
+
orderGoodsDetail
?
.
GoodsName
+
"不存在物料请先同步"
);
}
item
.
NewSpecificationSort
=
materialModel
.
SpecificationKey
;
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