Răsfoiți Sursa

查询商品得成交量以及成交金额

liude 1 an în urmă
părinte
comite
5af3287056

+ 11 - 0
src/main/java/com/chelvc/cloud/admin/controller/GoodsController.java

@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.*;
 
 import javax.validation.Valid;
 import javax.validation.constraints.Min;
+import java.util.List;
+import java.util.Map;
 
 /**
  * 商品接口
@@ -69,4 +71,13 @@ public class GoodsController {
     public Pagination<GoodsDTO> getGoodsPaging(@Valid GoodsPagingParam param) {
         return this.goodsService.getGoodsPaging(param);
     }
+
+    /**
+     * 查询商品得成交量以及成交金额
+     *
+     */
+    @GetMapping("/goods/orderAmount")
+    public List<Map<String,Object>> orderAmount() {
+        return this.goodsService.getGoodsAmount();
+    }
 }