From 91527017846388ceda21dac9ce1b2377a437622f Mon Sep 17 00:00:00 2001 From: wst <2450473462@qq.com> Date: Wed, 6 Nov 2024 21:01:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8E=B7=E5=8F=96=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0selected=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/store/controller/ShopTradeCartController.java | 2 ++ .../com/skyeye/store/service/impl/ShopTradeCartServiceImpl.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/controller/ShopTradeCartController.java b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/controller/ShopTradeCartController.java index e53dc816..10c81399 100644 --- a/skyeye-shop/shop-store/src/main/java/com/skyeye/store/controller/ShopTradeCartController.java +++ b/skyeye-shop/shop-store/src/main/java/com/skyeye/store/controller/ShopTradeCartController.java @@ -38,6 +38,8 @@ public class ShopTradeCartController { * @param outputObject 出参以及提示信息的返回值对象 */ @ApiOperation(id = "queryShopTradeCartList", value = "获取购物车信息", method = "POST", allUse = "2") + @ApiImplicitParams({ + @ApiImplicitParam(id = "selected", name = "selected", value = "选中状态,0:未选中,1:选中")}) @RequestMapping("/post/ShopTradeCartController/queryShopTradeCartList") public void queryShopTradeCartList(InputObject inputObject, OutputObject outputObject) { shopTradeCartService.queryShopTradeCartList(inputObject, outputObject); 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 6052121e..c3f52b3c 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 @@ -71,10 +71,12 @@ public class ShopTradeCartServiceImpl extends SkyeyeBusinessServiceImpl wrapper = new QueryWrapper<>(); wrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getCreateId), userId); + wrapper.eq(MybatisPlusUtil.toColumns(ShopTradeCart::getSelected), selected); wrapper.orderByDesc(MybatisPlusUtil.toColumns(ShopTradeCart::getCreateTime)); List beans = list(wrapper); iMaterialNormsService.setDataMation(beans, ShopTradeCart::getNormsId);