瀏覽代碼

调整获取买家交易记录的接口

yujia 7 年之前
父節點
當前提交
c0e46cbe39

+ 48 - 0
src/main/java/com/uas/platform/b2c/external/erp/order/api/ApiOrderController.java

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

+ 1 - 1
src/main/webapp/WEB-INF/spring/webmvc.xml

@@ -105,7 +105,7 @@
 			<mvc:exclude-mapping path="/store/**" />
 			<mvc:exclude-mapping path="/providers/**" />
 			<mvc:exclude-mapping path="/api/**" />
-			<mvc:exclude-mapping path="/api/trade/trading/**" />
+			<mvc:exclude-mapping path="/api/order/trading/volume/**" />
 			<mvc:exclude-mapping path="/search/**" />
 			<mvc:exclude-mapping path="/commonSearch/**" />
 			<mvc:exclude-mapping path="/help" />