Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
ms
soss
Commits
e032bca3
Commit
e032bca3
authored
Feb 27, 2023
by
caiyt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/v2' into v2
parents
83ff5968
3f8740d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
soss-system/src/main/java/com/soss/system/service/impl/ShopServiceImpl.java
+7
-0
soss-system/src/main/resources/mapper/system/ShopGoodsMapper.xml
+1
-0
No files found.
soss-system/src/main/java/com/soss/system/service/impl/ShopServiceImpl.java
View file @
e032bca3
...
...
@@ -299,6 +299,13 @@ public class ShopServiceImpl implements IShopService {
goods
.
setPreferential
(
"0"
);
}
goods
.
setSalesVolume
(
orderMapper
.
selectSalesVolume
(
shopId
,
goods
.
getId
()));
GoodsTag
goodsTag
=
new
GoodsTag
();
goodsTag
.
setState
(
"1"
);
goodsTag
.
setGoodsId
(
goods
.
getId
());
List
<
GoodsTag
>
goodsTags
=
goodsTagMapper
.
selectGoodsTagList
(
goodsTag
);
List
<
String
>
tags
=
goodsTags
.
stream
().
map
(
GoodsTag:
:
getTag
).
collect
(
Collectors
.
toList
());
goods
.
setGoodsTagList
(
tags
);
}
category
.
setGoodsList
(
goodsList
);
}
...
...
soss-system/src/main/resources/mapper/system/ShopGoodsMapper.xml
View file @
e032bca3
...
...
@@ -94,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
g.code,
'1' as state,
case when sr.id>0 then 1 else 0 end as isRecommend,
sr.recommend_price,
sr.recommend_tag
from goods g
LEFT JOIN shop_goods sg ON g.id = sg.goods_id
...
...
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