Ver Fonte

购物车数量不一致

yys há 3 semanas atrás
pai
commit
387e2926ce

+ 1 - 2
fs-user-app/src/main/java/com/fs/app/controller/store/ProductScrmController.java

@@ -322,8 +322,7 @@ public class ProductScrmController extends AppBaseController {
     @ApiOperation("获取商品购物车数量")
     @GetMapping("/getCartCount")
     public R getCartCount(FsStoreCartCountParam param){
-        param.setUserId(Long.parseLong(getUserId()));
-        Integer count=cartService.selectFsStoreCartCount(param);
+        Integer count=cartService.selectFsStoreCartCountByUserId(Long.parseLong(getUserId()));
         return R.ok().put("data", count);
     }