Commit bc3259cc26409fe62212b19ba3082f49a6333b1f

Authored by zhongnanhuang
1 parent 78e962aa

利润分析接口和首页数据展示接口

src/main/java/com/order/erp/controller/OrderProfitController.java
... ... @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
10 10  
11 11 import javax.annotation.Resource;
12 12 import java.util.List;
  13 +import java.util.Map;
13 14  
14 15 /**
15 16 * @author zhongnanhuang
... ... @@ -26,7 +27,8 @@ public class OrderProfitController {
26 27 OrderProfitAnalysisService orderProfitAnalysisService;
27 28  
28 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 32 if (orderIds==null||orderIds.size()<=0){
31 33 return ServerResult.fail("订单不能为空");
32 34 }
... ...