Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
bd3badac
Commit
bd3badac
authored
Sep 27, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加商品标签非空判断
parent
daf489b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
+5
-3
No files found.
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
View file @
bd3badac
...
...
@@ -423,9 +423,11 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
);
StoreGoods
storeGoods
=
storeGoodsMapper
.
selectById
(
storeOrder
.
getGoodsId
());
List
<
Integer
>
ids
=
JsonUtils
.
parseArray
(
storeGoods
.
getTags
(),
Integer
.
class
);
List
<
StoreGoodsTag
>
storeGoodsTags
=
storeGoodsTagMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreGoodsTag
>().
in
(
StoreGoodsTag:
:
getId
,
ids
).
select
(
StoreGoodsTag:
:
getTitle
));
totalOrderVo
.
setTags
(
storeGoodsTags
);
if
(
StringUtils
.
isNotEmpty
(
storeGoods
.
getTags
())){
List
<
Integer
>
ids
=
JsonUtils
.
parseArray
(
storeGoods
.
getTags
(),
Integer
.
class
);
List
<
StoreGoodsTag
>
storeGoodsTags
=
storeGoodsTagMapper
.
selectList
(
new
LambdaQueryWrapper
<
StoreGoodsTag
>().
in
(
StoreGoodsTag:
:
getId
,
ids
).
select
(
StoreGoodsTag:
:
getTitle
));
totalOrderVo
.
setTags
(
storeGoodsTags
);
}
totalOrderVo
.
setPrice
(
storeGoods
.
getPrice
());
totalOrderVo
.
setCover
(
storeGoods
.
getSmallCover
());
totalOrderVo
.
setName
(
storeGoods
.
getTitle
());
...
...
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