diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java index b4a703ff..605af4b6 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java @@ -118,7 +118,7 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl queryWrapper = new QueryWrapper<>(); queryWrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getMaterialId), shopTradeCart.getMaterialId()); queryWrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getNormsId), shopTradeCart.getNormsId()); - queryWrapper.eq(CommonConstants.ID,userId); + queryWrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getCreateId),userId); ShopTradeCart one = getOne(queryWrapper); if (ObjectUtil.isNotEmpty(one)) { shopTradeCart.setId(one.getId());