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
c911c796
Commit
c911c796
authored
Aug 28, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
38130ae7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
RB_Goods.cs
Mall.Model/Entity/Product/RB_Goods.cs
+5
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+9
-5
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+4
-0
No files found.
Mall.Model/Entity/Product/RB_Goods.cs
View file @
c911c796
...
@@ -454,5 +454,10 @@ namespace Mall.Model.Entity.Product
...
@@ -454,5 +454,10 @@ namespace Mall.Model.Entity.Product
/// 自动下架时间
/// 自动下架时间
/// </summary>
/// </summary>
public
DateTime
?
DownDate
{
get
;
set
;
}
public
DateTime
?
DownDate
{
get
;
set
;
}
/// <summary>
/// 发货地
/// </summary>
public
string
SendArea
{
get
;
set
;
}
}
}
}
}
Mall.Module.Product/ProductModule.cs
View file @
c911c796
...
@@ -2297,6 +2297,7 @@ namespace Mall.Module.Product
...
@@ -2297,6 +2297,7 @@ namespace Mall.Module.Product
isAllowShare
=
IsAllowShare
,
//是否可以分享
isAllowShare
=
IsAllowShare
,
//是否可以分享
advertising
=
model
.
Advertising
,
//广告词
advertising
=
model
.
Advertising
,
//广告词
price
=
model
.
SellingPrice
,
price
=
model
.
SellingPrice
,
sendArea
=
model
.
SendArea
,
use_attr
=
model
.
IsCustomSpecification
,
use_attr
=
model
.
IsCustomSpecification
,
attr_groups
=
model
.
SpecificationList
.
Select
(
x
=>
new
attr_groups
=
model
.
SpecificationList
.
Select
(
x
=>
new
{
{
...
@@ -4309,6 +4310,8 @@ namespace Mall.Module.Product
...
@@ -4309,6 +4310,8 @@ namespace Mall.Module.Product
{
nameof
(
RB_Goods
.
IsLiveGoods
),
demodel
.
IsLiveGoods
},
{
nameof
(
RB_Goods
.
IsLiveGoods
),
demodel
.
IsLiveGoods
},
{
nameof
(
RB_Goods
.
ShelvesDate
),
demodel
.
ShelvesDate
},
{
nameof
(
RB_Goods
.
ShelvesDate
),
demodel
.
ShelvesDate
},
{
nameof
(
RB_Goods
.
DownDate
),
demodel
.
DownDate
},
{
nameof
(
RB_Goods
.
DownDate
),
demodel
.
DownDate
},
{
nameof
(
RB_Goods
.
SendArea
),
demodel
.
SendArea
},
};
};
if
(
goodsModel
.
IsProcurement
==
1
)
if
(
goodsModel
.
IsProcurement
==
1
)
{
{
...
@@ -4346,7 +4349,8 @@ namespace Mall.Module.Product
...
@@ -4346,7 +4349,8 @@ namespace Mall.Module.Product
{
nameof
(
RB_Goods
.
EnjoyMember
),
demodel
.
EnjoyMember
},
{
nameof
(
RB_Goods
.
EnjoyMember
),
demodel
.
EnjoyMember
},
{
nameof
(
RB_Goods
.
SeparateSetMember
),
demodel
.
SeparateSetMember
},
{
nameof
(
RB_Goods
.
SeparateSetMember
),
demodel
.
SeparateSetMember
},
{
nameof
(
RB_Goods
.
IsQuickBuy
),
demodel
.
IsQuickBuy
},
{
nameof
(
RB_Goods
.
IsQuickBuy
),
demodel
.
IsQuickBuy
},
{
nameof
(
RB_Goods
.
SupplierId
),
demodel
.
SupplierId
}
{
nameof
(
RB_Goods
.
SupplierId
),
demodel
.
SupplierId
},
};
};
}
}
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
...
@@ -4995,7 +4999,7 @@ namespace Mall.Module.Product
...
@@ -4995,7 +4999,7 @@ namespace Mall.Module.Product
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
LogHelper
.
Write
(
ex
,
"SetProductGoodsInfo:"
+
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
));
LogHelper
.
Write
(
ex
,
"SetProductGoodsInfo:"
+
Common
.
Plugin
.
JsonHelper
.
Serialize
(
demodel
));
return
false
;
return
false
;
}
}
}
}
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
c911c796
...
@@ -1182,6 +1182,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1182,6 +1182,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
GoodsStatus
,
x
.
GoodsStatus
,
x
.
TenantId
,
x
.
TenantId
,
x
.
MallBaseId
,
x
.
MallBaseId
,
x
.
SendArea
,
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
});
});
return
ApiResult
.
Success
(
""
,
pagelist
);
return
ApiResult
.
Success
(
""
,
pagelist
);
...
@@ -1425,6 +1426,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1425,6 +1426,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
GoodsService
,
x
.
GoodsService
,
x
.
SpecificationList
,
x
.
SpecificationList
,
x
.
SpecificationPriceList
,
x
.
SpecificationPriceList
,
x
.
SendArea
,
});
});
return
ApiResult
.
Success
(
""
,
pagelist
);
return
ApiResult
.
Success
(
""
,
pagelist
);
}
}
...
@@ -1498,6 +1500,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -1498,6 +1500,7 @@ namespace Mall.WebApi.Controllers.MallBase
model
?.
IsProcurement
,
model
?.
IsProcurement
,
model
?.
Commission
,
model
?.
Commission
,
model
?.
IsLiveGoods
,
model
?.
IsLiveGoods
,
model
.
SendArea
,
CategoryList
=
model
?.
CategoryList
.
Select
(
x
=>
new
CategoryList
=
model
?.
CategoryList
.
Select
(
x
=>
new
{
{
x
.
Id
,
x
.
Id
,
...
@@ -2052,6 +2055,7 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -2052,6 +2055,7 @@ namespace Mall.WebApi.Controllers.MallBase
demodel
.
Advertising
??=
""
;
//广告词
demodel
.
Advertising
??=
""
;
//广告词
demodel
.
SubName
??=
""
;
//副标题
demodel
.
SubName
??=
""
;
//副标题
demodel
.
IsLiveGoods
??=
2
;
//是否直播商品 1是 2否
demodel
.
IsLiveGoods
??=
2
;
//是否直播商品 1是 2否
demodel
.
SendArea
??=
""
;
//发货地
if
(
demodel
.
IsProxy
==
1
&&
demodel
.
CostPrice
>
0
)
if
(
demodel
.
IsProxy
==
1
&&
demodel
.
CostPrice
>
0
)
{
{
decimal
ProxyMoney
=
0
;
decimal
ProxyMoney
=
0
;
...
...
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