|
|
@@ -0,0 +1,48 @@
|
|
|
+package com.uas.platform.b2c.external.erp.order.api;
|
|
|
+
|
|
|
+import com.uas.platform.b2c.trade.order.service.OrderService;
|
|
|
+import com.uas.platform.b2c.trade.support.ResultMap;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * description
|
|
|
+ *
|
|
|
+ * @author yuj 2018-09-21 18:11
|
|
|
+ */
|
|
|
+@RestController("api.ApiOrderController")
|
|
|
+@RequestMapping("/api/order")
|
|
|
+public class ApiOrderController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OrderService orderService;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 统计个人的订单金额(只包含520-405)
|
|
|
+ * @param useruu 个人uu
|
|
|
+ * @param enuu 企业uu
|
|
|
+ * @param starttime 开始时间
|
|
|
+ * @param endtime 结束时间
|
|
|
+ * @return ResultMap
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/trading/volume/personal", method = RequestMethod.GET)
|
|
|
+ public ResultMap statisticsPersonTradingVolume(Long useruu, Long enuu, Long starttime, Long endtime) {
|
|
|
+ return orderService.statisticsPersonTradingVolume(useruu, enuu, starttime, endtime);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 统计企业的订单金额总计 (只包含520-405)
|
|
|
+ * @param enuu
|
|
|
+ * @param starttime
|
|
|
+ * @param endtime
|
|
|
+ * @return ResultMap
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/trading/volume", method = RequestMethod.GET)
|
|
|
+ public ResultMap statisticsEnterpriseTradingVolume(Long enuu, Long starttime, Long endtime) {
|
|
|
+ return orderService.statisticsEnterpriseTradingVolume(enuu, starttime, endtime);
|
|
|
+ }
|
|
|
+}
|