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);