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
0b36ea56
Commit
0b36ea56
authored
Sep 09, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品收藏+足迹
parent
31e2cb3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
RB_Member_Footmark_Extend.cs
Mall.Model/Extend/User/RB_Member_Footmark_Extend.cs
+4
-0
UserModule.cs
Mall.Module.User/UserModule.cs
+2
-1
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+3
-1
No files found.
Mall.Model/Extend/User/RB_Member_Footmark_Extend.cs
View file @
0b36ea56
...
...
@@ -33,5 +33,9 @@ namespace Mall.Model.Extend.User
/// 商品价格
/// </summary>
public
decimal
Price
{
get
;
set
;
}
/// <summary>
/// 商品分类 0正常商品 1司导商品
/// </summary>
public
int
GoodsClassify
{
get
;
set
;
}
}
}
Mall.Module.User/UserModule.cs
View file @
0b36ea56
...
...
@@ -4236,13 +4236,14 @@ namespace Mall.Module.User
{
//查询商品信息
string
goodsIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
GoodsId
).
Distinct
());
var
goodsList
=
goodsRepository
.
Get
List
(
new
RB_Goods_Extend
()
{
GoodsIds
=
goodsIds
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
}
);
var
goodsList
=
goodsRepository
.
Get
SingleList
(
new
RB_Goods_Extend
()
{
GoodsIds
=
goodsIds
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
},
true
);
foreach
(
var
item
in
list
)
{
var
goodsModel
=
goodsList
.
Where
(
x
=>
x
.
Id
==
item
.
GoodsId
).
FirstOrDefault
();
item
.
GoodsName
=
goodsModel
?.
Name
??
""
;
item
.
Price
=
goodsModel
?.
SellingPrice
??
0
;
item
.
GoodsClassify
=
goodsModel
?.
GoodsClassify
??
0
;
item
.
GoodsImgPath
=
""
;
if
(
goodsModel
!=
null
)
{
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
0b36ea56
...
...
@@ -286,7 +286,8 @@ namespace Mall.WebApi.Controllers.User
x
.
Name
,
x
.
CoverImage
,
x
.
SellingPrice
,
x
.
SalesNum
x
.
SalesNum
,
x
.
GoodsClassify
});
return
ApiResult
.
Success
(
""
,
pagelist
);
...
...
@@ -883,6 +884,7 @@ namespace Mall.WebApi.Controllers.User
x
.
GoodsName
,
x
.
GoodsImgPath
,
x
.
Price
,
x
.
GoodsClassify
,
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
});
...
...
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