Commit 1d78be03 by huluobin

商城购物车fix

parent b9245c7e
...@@ -71,7 +71,7 @@ public class MallShoppingCartCmdServiceImpl implements MallShoppingCartCmdServic ...@@ -71,7 +71,7 @@ public class MallShoppingCartCmdServiceImpl implements MallShoppingCartCmdServic
if (mallShoppingCart != null) { if (mallShoppingCart != null) {
if (mallShoppingCart.getNum() > 1) { if (mallShoppingCart.getNum() > 1) {
mallShoppingCart.setNum((mallShoppingCart.getNum() - 1)); mallShoppingCart.setNum((mallShoppingCart.getNum() - 1));
mallShoppingCartMapper.insert(mallShoppingCart); mallShoppingCartMapper.updateById(mallShoppingCart);
} }
//移除购物车项 //移除购物车项
else { else {
......
...@@ -43,7 +43,7 @@ spring: ...@@ -43,7 +43,7 @@ spring:
#redis配置 #redis配置
redis: redis:
host: 127.0.0.1 host: 127.0.0.1t
port: 6379 port: 6379
database: 0 database: 0
lettuce: lettuce:
......
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