|
@@ -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();
|
|
|
+ }
|
|
|
}
|