Commit bc3259cc26409fe62212b19ba3082f49a6333b1f
1 parent
78e962aa
利润分析接口和首页数据展示接口
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/order/erp/controller/OrderProfitController.java
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController; | @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController; | ||
10 | 10 | ||
11 | import javax.annotation.Resource; | 11 | import javax.annotation.Resource; |
12 | import java.util.List; | 12 | import java.util.List; |
13 | +import java.util.Map; | ||
13 | 14 | ||
14 | /** | 15 | /** |
15 | * @author zhongnanhuang | 16 | * @author zhongnanhuang |
@@ -26,7 +27,8 @@ public class OrderProfitController { | @@ -26,7 +27,8 @@ public class OrderProfitController { | ||
26 | OrderProfitAnalysisService orderProfitAnalysisService; | 27 | OrderProfitAnalysisService orderProfitAnalysisService; |
27 | 28 | ||
28 | @PostMapping("/analysis") | 29 | @PostMapping("/analysis") |
29 | - public ServerResult analysis(@RequestBody List<Long> orderIds){ | 30 | + public ServerResult analysis(@RequestBody Map<String,List<Long>> body){ |
31 | + List<Long> orderIds = body.get("orderIds"); | ||
30 | if (orderIds==null||orderIds.size()<=0){ | 32 | if (orderIds==null||orderIds.size()<=0){ |
31 | return ServerResult.fail("订单不能为空"); | 33 | return ServerResult.fail("订单不能为空"); |
32 | } | 34 | } |