guoyujie
2025-10-29 cd12e547ba398c74370e24d08ae8228af7d49efa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.example.erp.controller;
 
import com.example.erp.common.Result;
import com.example.erp.entity.sd.Order;
import com.example.erp.service.mm.MaterialInventoryService;
import com.example.erp.service.sd.DeliveryService;
import com.example.erp.service.sd.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.time.LocalDate;
import java.util.List;
 
@RestController
@RequestMapping("/app")
@RequiredArgsConstructor
@Api(value="App专属接口",tags={"App专属接口"})
public class AppController {
    private final OrderService orderService;
    private final DeliveryService deliveryService;
    private final MaterialInventoryService materialInventoryService;
 
    @ApiOperation("订单报表")
    @PostMapping("/getOrderList")
    public Result getOrderList(@RequestBody List<String> dates) {
        return Result.success(orderService.appGetOrderList(dates));
    }
 
    @ApiOperation("发货报表")
    @PostMapping("/getDeliveryList")
    public Result getDeliveryList(@RequestBody List<String> dates) {
        return Result.success(deliveryService.appGetDeliveryList(dates));
    }
 
    @ApiOperation("原片库存报表")
    @PostMapping("/getStockList")
    public Result getStockList() {
 
        return Result.success(materialInventoryService.appGetStockList());
    }
}