Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
order-group-application
order-group
Commits
cf74870e
Commit
cf74870e
authored
Oct 12, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/feature/2.0-换购券' into qa
parents
7526ae16
f3032761
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
+3
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ItemServiceImpl.java
View file @
cf74870e
...
@@ -182,12 +182,12 @@ public class ItemServiceImpl implements ItemService {
...
@@ -182,12 +182,12 @@ public class ItemServiceImpl implements ItemService {
}
}
});
});
}
}
if
(
CollectionUtils
.
is
Not
Empty
(
skuIds
))
{
if
(
CollectionUtils
.
isEmpty
(
skuIds
))
{
return
resultMap
;
return
resultMap
;
}
}
// 通过skuid查询spuid
// 通过skuid查询spuid
GetSpuIdsBySkuIdsDto
bySkuIdsDto
=
new
GetSpuIdsBySkuIdsDto
();
GetSpuIdsBySkuIdsDto
bySkuIdsDto
=
new
GetSpuIdsBySkuIdsDto
();
bySkuIdsDto
.
setProductIds
(
pi
ds
);
bySkuIdsDto
.
setProductIds
(
skuI
ds
);
bySkuIdsDto
.
setPartnerId
(
partnerId
);
bySkuIdsDto
.
setPartnerId
(
partnerId
);
ProductListDto
productListDto
=
storeItemClient
.
getSpuIdsBySkuIds
(
bySkuIdsDto
);
ProductListDto
productListDto
=
storeItemClient
.
getSpuIdsBySkuIds
(
bySkuIdsDto
);
if
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
.
equals
(
productListDto
.
getErrcode
())
if
(
ResponseCodeConstant
.
RESPONSE_SUCCESS
.
equals
(
productListDto
.
getErrcode
())
...
@@ -201,7 +201,7 @@ public class ItemServiceImpl implements ItemService {
...
@@ -201,7 +201,7 @@ public class ItemServiceImpl implements ItemService {
String
picture
=
CollectionUtils
.
isNotEmpty
(
product
.
getProductPictureList
())
String
picture
=
CollectionUtils
.
isNotEmpty
(
product
.
getProductPictureList
())
?
product
.
getProductPictureList
().
get
(
0
).
getUrl
()
:
product
.
getPicture
();
?
product
.
getProductPictureList
().
get
(
0
).
getUrl
()
:
product
.
getPicture
();
getProductsVo
.
setSpuPicture
(
picture
);
getProductsVo
.
setSpuPicture
(
picture
);
getProductsVo
.
setStatus
(
product
.
getStatus
());
//
getProductsVo.setStatus(product.getStatus());
resultMap
.
put
(
skuProductBean
.
getSkuId
(),
getProductsVo
);
resultMap
.
put
(
skuProductBean
.
getSkuId
(),
getProductsVo
);
}
}
});
});
...
...
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