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
0675902f
Commit
0675902f
authored
Mar 03, 2021
by
xiaoer.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add::sdk+log
parent
79844768
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/ShoppingCartBaseService.java
+0
-2
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/AssortmentSdkService.java
+3
-0
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/service/ShoppingCartBaseService.java
View file @
0675902f
...
...
@@ -64,7 +64,6 @@ import static com.freemud.sdk.api.assortment.shoppingcart.constant.ShoppingCartC
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
@Service
@Slf4j
public
interface
ShoppingCartBaseService
{
/**
...
...
@@ -163,7 +162,6 @@ public interface ShoppingCartBaseService {
getProductInfoDto
.
setChannel
(
getProductInfoRequest
.
getMenuType
());
ProductService
productService
=
SDKCommonBaseContextWare
.
getBean
(
ProductService
.
class
);
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
ProductInfosDTO
>
productInfosDTOBaseResponse
=
productService
.
listProductInfoByIdList
(
getProductInfoDto
,
LogThreadLocal
.
getTrackingNo
());
log
.
info
(
"getProductsInfo req:{},rep:{}"
,
JSON
.
toJSONString
(
getProductInfoDto
),
JSON
.
toJSONString
(
productInfosDTOBaseResponse
));
if
(!
Objects
.
equals
(
ResponseResultEnum
.
SUCCESS
.
getCode
(),
productInfosDTOBaseResponse
.
getCode
())
||
productInfosDTOBaseResponse
.
getData
()
==
null
)
{
return
CartResponseUtil
.
error
(
productInfosDTOBaseResponse
.
getMessage
());
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/AssortmentSdkService.java
View file @
0675902f
...
...
@@ -18,6 +18,7 @@ import com.freemud.sdk.api.assortment.shoppingcart.enums.BusinessTypeEnum;
import
com.freemud.sdk.api.assortment.shoppingcart.request.CheckCartRequest
;
import
com.freemud.sdk.api.assortment.shoppingcart.request.GetProductInfoRequest
;
import
com.freemud.sdk.api.assortment.shoppingcart.service.ShoppingCartBaseService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -40,6 +41,7 @@ import java.util.List;
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
@Service
@Slf4j
public
class
AssortmentSdkService
{
/**
...
...
@@ -236,6 +238,7 @@ public class AssortmentSdkService {
request
.
setStoreId
(
storeId
);
request
.
setTrackingNo
(
LogThreadLocal
.
getTrackingNo
());
request
.
setMenuType
(
BusinessTypeEnum
.
getByType
(
menuType
).
getCode
());
log
.
info
(
"getProductsInfoSdk req:{}"
,
JSON
.
toJSONString
(
request
));
BaseResponse
<
List
<
ProductBeanDTO
>>
baseResponse
=
shoppingCartService
.
getProductsInfo
(
request
);
if
(
baseResponse
==
null
||
!
ResponseResult
.
SUCCESS
.
getCode
().
equals
(
baseResponse
.
getCode
())
||
CollectionUtils
.
isEmpty
(
baseResponse
.
getResult
()))
{
...
...
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