diff --git a/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsCartItemServiceImpl.java b/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsCartItemServiceImpl.java index 869678c..82e7545 100644 --- a/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsCartItemServiceImpl.java +++ b/mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsCartItemServiceImpl.java @@ -14,7 +14,6 @@ import com.macro.mall.portal.service.UmsMemberService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; -import org.springframework.util.StringUtils; import java.util.ArrayList; import java.util.Date; @@ -62,7 +61,7 @@ public class OmsCartItemServiceImpl implements OmsCartItemService { OmsCartItemExample example = new OmsCartItemExample(); OmsCartItemExample.Criteria criteria = example.createCriteria().andMemberIdEqualTo(cartItem.getMemberId()) .andProductIdEqualTo(cartItem.getProductId()).andDeleteStatusEqualTo(0); - if (!StringUtils.isEmpty(cartItem.getProductSkuId())) { + if (cartItem.getProductSkuId()!=null) { criteria.andProductSkuIdEqualTo(cartItem.getProductSkuId()); } List cartItemList = cartItemMapper.selectByExample(example);