浏览代码

商品添加查询条件

yuanliang 1 年之前
父节点
当前提交
a4b8f71e11
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mec-application/src/main/java/com/ym/mec/web/controller/GoodsController.java

+ 3 - 3
mec-application/src/main/java/com/ym/mec/web/controller/GoodsController.java

@@ -151,18 +151,18 @@ public class GoodsController extends BaseController {
     @ApiOperation(value = "查询商品类型")
     @GetMapping("/queryGoodsTypeList")
     public Object queryGoodsTypeList() {
-        return goodsService.queryGoodsTypeList();
+        return succeed(goodsService.queryGoodsTypeList());
     }
 
     @ApiOperation(value = "查询商品分类")
     @GetMapping("/queryGoodsCategoryList")
     public Object queryGoodsCategoryList() {
-        return goodsService.queryGoodsCategoryList();
+        return succeed(goodsService.queryGoodsCategoryList());
     }
 
     @ApiOperation(value = "查询商品品牌")
     @GetMapping("/queryGoodsBrandList")
     public Object queryGoodsBrandList() {
-        return goodsService.queryGoodsBrandList();
+        return succeed(goodsService.queryGoodsBrandList());
     }
 }