Commit 0675902f by xiaoer.li

add::sdk+log

parent 79844768
......@@ -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());
}
......
......@@ -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())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment