Commit 9d13cb3a by 刘鹏飞

coco加点日志

parent 542b5009
...@@ -24,6 +24,7 @@ import cn.freemud.utils.WebUtil; ...@@ -24,6 +24,7 @@ import cn.freemud.utils.WebUtil;
import com.freemud.application.sdk.api.log.ApiLog; import com.freemud.application.sdk.api.log.ApiLog;
import com.freemud.application.sdk.api.log.LogThreadLocal; import com.freemud.application.sdk.api.log.LogThreadLocal;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -31,7 +32,7 @@ import org.springframework.stereotype.Service; ...@@ -31,7 +32,7 @@ import org.springframework.stereotype.Service;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Slf4j
@Service("cocoShoppingCartRelationService") @Service("cocoShoppingCartRelationService")
public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelationService { public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelationService {
...@@ -358,7 +359,10 @@ public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelation ...@@ -358,7 +359,10 @@ public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelation
// 商品的单价 = 商品单价+小料单价 // 商品的单价 = 商品单价+小料单价
product.setOriginalPrice(originalPrice); product.setOriginalPrice(originalPrice);
// 商品现单价 = 商品现单价+小料现单价 // 商品现单价 = 商品现单价+小料现单价
product.setFinalPrice(new Long(smallMaterialOriTotal) + product.getFinalPrice()); log.info("coco日志,smallMaterialOriTotal:{}",smallMaterialOriTotal);
log.info("coco日志,setFinalPrice:{}",product.getFinalPrice());
smallMaterialOriTotal = smallMaterialOriTotal == null ? 0 : smallMaterialOriTotal;
product.setFinalPrice(new Long(smallMaterialOriTotal) + (product.getFinalPrice() == null ? 0L : product.getFinalPrice()));
newProducts.add(product); newProducts.add(product);
} }
......
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