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
c95dfd77
Commit
c95dfd77
authored
Aug 12, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格设置
parent
b8e5b6b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SmallShopsModule.cs
Mall.Module.User/SmallShopsModule.cs
+1
-1
RB_SmallShops_PriceRepository.cs
Mall.Repository/User/RB_SmallShops_PriceRepository.cs
+2
-2
No files found.
Mall.Module.User/SmallShopsModule.cs
View file @
c95dfd77
...
@@ -243,7 +243,7 @@ namespace Mall.Module.User
...
@@ -243,7 +243,7 @@ namespace Mall.Module.User
if
(
goodsList
.
Any
())
{
if
(
goodsList
.
Any
())
{
//查询出所有商品id
//查询出所有商品id
string
goodsIds
=
string
.
Join
(
","
,
goodsList
.
Select
(
x
=>
x
.
GoodsId
??
0
).
Distinct
());
string
goodsIds
=
string
.
Join
(
","
,
goodsList
.
Select
(
x
=>
x
.
GoodsId
??
0
).
Distinct
());
var
glist
=
goodsRepository
.
GetSingleList
ForGoodsId
(
new
RB_Goods_Extend
()
{
GoodsIds
=
goodsIds
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
});
var
glist
=
goodsRepository
.
GetSingleList
(
new
RB_Goods_Extend
()
{
GoodsIds
=
goodsIds
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
});
foreach
(
var
item
in
glist
)
{
foreach
(
var
item
in
glist
)
{
item
.
CoverImage
=
""
;
item
.
CoverImage
=
""
;
if
(!
string
.
IsNullOrEmpty
(
item
.
CarouselImage
)
&&
item
.
CarouselImage
!=
"[]"
)
if
(!
string
.
IsNullOrEmpty
(
item
.
CarouselImage
)
&&
item
.
CarouselImage
!=
"[]"
)
...
...
Mall.Repository/User/RB_SmallShops_PriceRepository.cs
View file @
c95dfd77
...
@@ -41,7 +41,7 @@ namespace Mall.Repository.User
...
@@ -41,7 +41,7 @@ namespace Mall.Repository.User
}
}
string
sql
=
$@"select di.* from RB_SmallShops_Price
_Extend
di
string
sql
=
$@"select di.* from RB_SmallShops_Price di
where
{
where
}
order by di.Id desc"
;
where
{
where
}
order by di.Id desc"
;
return
Get
<
RB_SmallShops_Price_Extend
>(
sql
).
ToList
();
return
Get
<
RB_SmallShops_Price_Extend
>(
sql
).
ToList
();
}
}
...
@@ -77,7 +77,7 @@ where {where} order by di.Id desc";
...
@@ -77,7 +77,7 @@ where {where} order by di.Id desc";
string
sql
=
$@"
string
sql
=
$@"
SELECT sp.GoodsId FROM rb_smallshops_price sp
SELECT sp.GoodsId FROM rb_smallshops_price sp
INNER JOIN rb_goods g on sp.GoodsId=g.Id
INNER JOIN rb_goods g on sp.GoodsId=g.Id
{
where
}
where
{
where
}
GROUP BY sp.GoodsId ORDER BY sp.CreateDate DESC
GROUP BY sp.GoodsId ORDER BY sp.CreateDate DESC
"
;
"
;
return
GetPage
<
RB_SmallShops_Price_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
return
GetPage
<
RB_SmallShops_Price_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
...
...
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